aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
committerfriendica <info@friendica.com>2012-08-12 20:56:23 -0700
commit184cf51d2f21782d8fa78d833b1439ed692126ff (patch)
treecc2d74b87c5ac94fe7aa7c97382b6f982810298b /index.php
parent9899cfb5c75b6855e158d855ca0dba1344ca6262 (diff)
downloadvolse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.gz
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.tar.bz2
volse-hubzilla-184cf51d2f21782d8fa78d833b1439ed692126ff.zip
reduce duplication - only provide one system language setting
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)) {