mirror of
https://github.com/silverstripe/silverstripe-staticpublisher
synced 2024-10-22 14:05:54 +02:00
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:
parent
bd19b2cc75
commit
ea2c3fbe64
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user