diff options
author | mistic100 <mistic@piwigo.org> | 2013-03-08 12:11:56 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-03-08 12:11:56 +0000 |
commit | a245a11ae06de89f159e3a4f869fd9970d8194a0 (patch) | |
tree | f964a9fe0eaa8922c6b96ec203ac14efd4496707 /plugins/language_switch/language_switch.inc.php | |
parent | ed0d86d0e700e03eaf33775cad9778c91c4a124e (diff) |
Merged revision(s) 21356 from trunk:
[language_switch] update css overload
git-svn-id: http://piwigo.org/svn/branches/2.5@21357 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins/language_switch/language_switch.inc.php')
-rw-r--r-- | plugins/language_switch/language_switch.inc.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php index 63a3cca7e..333dddfdd 100644 --- a/plugins/language_switch/language_switch.inc.php +++ b/plugins/language_switch/language_switch.inc.php @@ -124,15 +124,15 @@ function language_controler_flags() } } - $template->set_filename('language_flags', dirname(__FILE__) . '/flags.tpl'); + $safe_themes = array('clear','dark','elegant','Sylvia','simple-grey','simple-black','simple-white','kardon','luciano','montblancxl'); // stripped (2.6) - $template->assign( - array( + $template->assign(array( 'lang_switch'=> $lsw, 'LANGUAGE_SWITCH_PATH' => LANGUAGE_SWITCH_PATH, - ) - ); + 'LANGUAGE_SWITCH_LOAD_STYLE' => !in_array($user['theme'], $safe_themes), + )); + $template->set_filename('language_flags', dirname(__FILE__) . '/flags.tpl'); $template->concat('PLUGIN_INDEX_ACTIONS', $template->parse('language_flags', true) ); $template->clear_assign('lang_switch'); } |