From 4ad06e557901b90c199d3cdaf941b552742db98e Mon Sep 17 00:00:00 2001 From: Tom Densham Date: Thu, 23 May 2013 15:17:24 +0200 Subject: [PATCH] BUGFIX: Ensure that the theme set gets used when publishing Without setting the SSViewer.theme_enabled config variable the current theme gets ignored when publishing the static pages. --- code/extensions/FilesystemPublisher.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/extensions/FilesystemPublisher.php b/code/extensions/FilesystemPublisher.php index 41ba4db..1797daa 100644 --- a/code/extensions/FilesystemPublisher.php +++ b/code/extensions/FilesystemPublisher.php @@ -176,6 +176,9 @@ class FilesystemPublisher extends StaticPublisher { if($customTheme) { Config::inst()->update('SSViewer', 'theme', $customTheme); } + + // Ensure that the theme that is set gets used. + Config::inst()->update('SSViewer', 'theme_enabled', true); $currentBaseURL = Director::baseURL(); $staticBaseUrl = Config::inst()->get('FilesystemPublisher', 'static_base_url');