BUGFIX: Ensure that theme is detected properly

Prevent the update of config SSViewer.theme with SSViewer.custom_theme as this was blocking the detection of the theme set by SSViewer::set_theme() and only detecting the theme configured via CMSSettingsController.
This commit is contained in:
Tom Densham 2013-05-20 18:07:36 +02:00
parent bd19b2cc75
commit ea2c3fbe64

View File

@ -173,9 +173,7 @@ class FilesystemPublisher extends StaticPublisher {
// or we can use the last non-null theme.
$customTheme = Config::inst()->get('StaticPublisher', 'static_publisher_theme');
if(!$customTheme) {
Config::inst()->update('SSViewer', 'theme', Config::inst()->get('SSViewer', 'custom_theme'));
} else {
if($customTheme) {
Config::inst()->update('SSViewer', 'theme', $customTheme);
}