aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--plugins/add_index/main.normal.inc.php2
-rw-r--r--plugins/language_switch/language_switch.inc.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/add_index/main.normal.inc.php b/plugins/add_index/main.normal.inc.php
index 6f43c6e40..3a0592b92 100644
--- a/plugins/add_index/main.normal.inc.php
+++ b/plugins/add_index/main.normal.inc.php
@@ -33,7 +33,7 @@ class NormalAddIndex extends AddIndex
if (in_array($page, array('advanced_feature', 'site_manager')))
{
$help_content =
- load_language('help/'.$page.'.html', $this->path, '', true);
+ load_language('help/'.$page.'.html', $this->path, array('return'=>true) );
}
else
{
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']) );
}
}
}