Permalink
Browse files

BUGFIX #2504 - Fixed translation interface not working in CMS

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.2.2@54465 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 5b8564e commit 35511143bc2124eb65e33b711c10e6648f066f7a @ajoneil ajoneil committed with sminnee May 13, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/LeftAndMain.php
@@ -39,8 +39,8 @@ function init() {
}
// 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();

0 comments on commit 3551114

Please sign in to comment.