diff options
author | mistic100 <mistic@piwigo.org> | 2013-03-08 12:09:06 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-03-08 12:09:06 +0000 |
commit | 61ca0705dde33bd81b133d538c197c89ccf5caaf (patch) | |
tree | 69130646e2042dc93584aac0113891444015ff28 /plugins/language_switch/language_switch.inc.php | |
parent | b7e2b0176890b1293a093d2bd6cceadf825b4f0e (diff) |
update css overload
git-svn-id: http://piwigo.org/svn/trunk@21356 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'); } |