Fix page rendering with proper subsite locale

This commit is contained in:
Gregory Smirnov 2017-08-10 20:14:59 +02:00
parent 9b97f8af89
commit ab81117c5e

View File

@ -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()