aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-07-07 12:54:44 +0000
committermistic100 <mistic@piwigo.org>2013-07-07 12:54:44 +0000
commitb1316542e4d1032f365c1011615d35370e3f35a8 (patch)
treecc790ecaad504f40b116da696dfc78aa2e2d8ffa /include/functions.inc.php
parent92134bc10200f2528cb7c22e4a5ed17c3886c1e6 (diff)
bug:2939 switch_lang_to() must reload plugins files
git-svn-id: http://piwigo.org/svn/trunk@23823 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 861d85064..560bc5a4b 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1209,7 +1209,15 @@ function get_pwg_charset()
function load_language($filename, $dirname = '',
$options = array() )
{
- global $user;
+ global $user, $language_files;
+
+ if ( !empty($dirname) and !empty($filename) )
+ {
+ if ( empty($language_files[$dirname]) or !in_array($filename,$language_files[$dirname]) )
+ {
+ $language_files[$dirname][] = $filename;
+ }
+ }
if (! @$options['return'] )
{