aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 35f10239d..bd88da68d 100644
--- a/index.php
+++ b/index.php
@@ -27,9 +27,9 @@ $install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false
@include(".htconfig.php");
-$a->language = $lang = get_best_language();
+$a->language = get_best_language();
-load_translation_table($lang);
+load_translation_table($a->language);
/**
*
@@ -81,8 +81,8 @@ if(array_key_exists('system_language',$_POST)) {
unset($_SESSION['language']);
}
if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) {
- $lang = $_SESSION['language'];
- load_translation_table($lang);
+ $a->language = $_SESSION['language'];
+ load_translation_table($a->language);
}
if((x($_GET,'zrl')) && (! $install)) {