Permalink
Browse files

#1702 - When in translation mode on meta-data tab, refreshing CMS rem…

…oves site tree

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44676 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 852a379 commit 2149c1569fd0f316de6ba90e53434608243bbe91 @ajoneil ajoneil committed Nov 13, 2007
Showing with 5 additions and 0 deletions.
  1. +5 −0 code/LeftAndMain.php
View
@@ -17,6 +17,11 @@ function init() {
if(!empty($member->Locale)) {
i18n::set_locale($member->Locale);
}
+
+ // set reading lang
+ if(Translatable::is_enabled()) {
+ Translatable::choose_site_lang(i18n::get_existing_content_languages('SiteTree'));
+ }
parent::init();

0 comments on commit 2149c15

Please sign in to comment.