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