Skip to content

Commit

Permalink
Merge pull request #288 from gregsmirnov/pulls/1.3/fix-subsite-page-l…
Browse files Browse the repository at this point in the history
…anguage

Fix page rendering with proper subsite locale
  • Loading branch information
robbieaverill authored Sep 1, 2017
2 parents 428a5f9 + ab81117 commit c3471ec
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 c3471ec

Please sign in to comment.