mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Fix page rendering with proper subsite locale
This commit is contained in:
parent
9b97f8af89
commit
ab81117c5e
@ -265,6 +265,10 @@ class SiteTreeSubsites extends DataExtension
|
||||
if ($subsite && $subsite->Theme) {
|
||||
Config::inst()->update('SSViewer', 'theme', Subsite::currentSubsite()->Theme);
|
||||
}
|
||||
|
||||
if ($subsite && i18n::validate_locale($subsite->Language)) {
|
||||
i18n::set_locale($subsite->Language);
|
||||
}
|
||||
}
|
||||
|
||||
public function alternateAbsoluteLink()
|
||||
|
Loading…
Reference in New Issue
Block a user