mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
#1702 - When in translation mode on meta-data tab, refreshing CMS removes site tree
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44676 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
852a379417
commit
2149c1569f
@ -17,6 +17,11 @@ abstract class LeftAndMain extends Controller {
|
||||
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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user