diff options
author | friendica <info@friendica.com> | 2012-08-12 20:56:23 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-12 20:56:23 -0700 |
commit | 184cf51d2f21782d8fa78d833b1439ed692126ff (patch) | |
tree | cc2d74b87c5ac94fe7aa7c97382b6f982810298b /index.php | |
parent | 9899cfb5c75b6855e158d855ca0dba1344ca6262 (diff) | |
download | volse-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.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) { |