aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_mail.inc.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions_mail.inc.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index 4c572b665..ed1081713 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -308,8 +308,13 @@ function switch_lang_to($language)
if (!empty($language_files))
{
foreach ($language_files as $dirname => $files)
- foreach ($files as $filename)
- load_language($filename, $dirname, array('language'=>$language) );
+ {
+ foreach ($files as $filename => $options)
+ {
+ $options['language'] = $language;
+ load_language($filename, $dirname, $options);
+ }
+ }
}
trigger_notify('loading_lang');
@@ -330,6 +335,7 @@ function switch_lang_to($language)
/**
* Switch back language pushed with switch_lang_to() function.
* @see switch_lang_to()
+ * Language files are not reloaded
*/
function switch_lang_back()
{