Merged revisions 54472 via svnmerge from

svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.2.2

........
  r54472 | aoneil | 2008-05-13 21:11:42 +1200 (Tue, 13 May 2008) | 2 lines
  
  BUGFIX #2504 - Fixed translation interface not working in CMS
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@56919 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-06-25 04:11:36 +00:00
parent 610a02e08a
commit e24b1bd498

View File

@ -47,8 +47,8 @@ class LeftAndMain extends Controller {
}
// set reading lang
if(Translatable::is_enabled()) {
Translatable::choose_site_lang(i18n::get_existing_content_languages('SiteTree'));
if(Translatable::is_enabled() && !Director::is_ajax()) {
Translatable::choose_site_lang(array_keys(i18n::get_existing_content_languages('SiteTree')));
}
parent::init();