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