mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
3.2 compat changes
This commit is contained in:
parent
bfc70f9b06
commit
750cdbcff9
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
.DS_Store
|
||||
host-map.php
|
||||
|
@ -205,7 +205,10 @@ class SiteTreeSubsites extends DataExtension {
|
||||
*/
|
||||
static function contentcontrollerInit($controller) {
|
||||
$subsite = Subsite::currentSubsite();
|
||||
if($subsite && $subsite->Theme) SSViewer::set_theme(Subsite::currentSubsite()->Theme);
|
||||
|
||||
if($subsite && $subsite->Theme){
|
||||
Config::inst()->update('SSViewer', 'theme', Subsite::currentSubsite()->Theme);
|
||||
}
|
||||
}
|
||||
|
||||
function alternateAbsoluteLink() {
|
||||
|
Loading…
Reference in New Issue
Block a user