Skip to content

Commit

Permalink
Fix page rendering with proper subsite locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Smirnov committed Aug 10, 2017
1 parent 9b97f8a commit ab81117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/extensions/SiteTreeSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ public static function contentcontrollerInit($controller)
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()
Expand Down

0 comments on commit ab81117

Please sign in to comment.