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.
This commit is contained in:
Tom Densham 2013-05-23 15:17:24 +02:00
parent ea2c3fbe64
commit 4ad06e5579
1 changed files with 3 additions and 0 deletions

View File

@ -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');