Permalink
Browse files

Make compatible with newer Language Redirect, as the config parameter…

… name had changed
  • Loading branch information...
1 parent 04de091 commit 7d71eb188606711cfa0b4e2a542dfb4f4eac828c @jonmifsud committed Apr 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 extension.driver.php
View
@@ -12,8 +12,8 @@
public function about(){
return array(
'name' => 'Backend Language Switcher',
- 'version' => '1.0',
- 'release-date' => '2010-10-22',
+ 'version' => '1.1',
+ 'release-date' => '2012-04-03',
'author' => array(
'name' => 'John J. Camilleri',
'email' => 'john@johnjcamilleri.com'
@@ -36,6 +36,7 @@ public function initializeAdmin($context) {
$page = $context['parent']->Page;
$author = $context['parent']->Author;
$languages = explode(',', Symphony::Configuration()->get('languages', 'language_redirect') );
+ if (sizeof($languages)==0) $languages = explode(',', Symphony::Configuration()->get('language_codes', 'language_redirect') );
$assets_path = URL . '/extensions/backend_language_switcher/assets';
// CSS & JS for all admin

0 comments on commit 7d71eb1

Please sign in to comment.