mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
Merge pull request #288 from gregsmirnov/pulls/1.3/fix-subsite-page-language
Fix page rendering with proper subsite locale
This commit is contained in:
commit
c3471ece1c
@ -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…
x
Reference in New Issue
Block a user