diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-08-20 00:35:22 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-08-20 00:35:22 +0000 |
commit | 5a6298548b194e0987cdccc8a11b04efa8c9fd61 (patch) | |
tree | a9cb03ff5870e6ed5a3e36d6ceead1391afa8587 /plugins/language_switch/language_switch.inc.php | |
parent | dcbaefafdfb955f61c9b83eb8d2e15eea2880694 (diff) |
- local.lang is loaded without fallback on default language or PHPWG_DEFAULT_LANGUAGE (needed to change the signature of load_language which became a little too big)
- move a function from functions.inc.php to functions_picture.inc.php (included only when necessary)
- removed some css (not as much as I wanted)
git-svn-id: http://piwigo.org/svn/trunk@2479 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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php index baaa0375a..d69db1c5e 100644 --- a/plugins/language_switch/language_switch.inc.php +++ b/plugins/language_switch/language_switch.inc.php @@ -57,11 +57,11 @@ function language_switch() // Reload language only if it isn't the same one if ( $same !== $user['language']) { - load_language('common.lang', '', $user['language']); - load_language('local.lang', '', $user['language']); + load_language('common.lang', '', array('language'=>$user['language']) ); + load_language('local.lang', '', array('language'=>$user['language'], 'no_fallback'=>true) ); if (defined('IN_ADMIN') and IN_ADMIN) { - load_language('admin.lang', '', $user['language']); + load_language('admin.lang', '', array('language'=>$user['language']) ); } } } |