diff options
author | RedMatrix <info@friendica.com> | 2014-05-24 08:51:50 +1000 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2014-05-24 08:51:50 +1000 |
commit | 47bd0b3211102aacfcf60911e33e8ada359a93c6 (patch) | |
tree | e3349d4b1f3ed3c69350690d5b586ce87bc70aa3 /index.php | |
parent | 059b6cd411e7034bd6b1b6de02dc34984259bd11 (diff) | |
parent | bc389ff9341d8efec367b2b07c2d1b55be11b8d0 (diff) | |
download | volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.tar.gz volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.tar.bz2 volse-hubzilla-47bd0b3211102aacfcf60911e33e8ada359a93c6.zip |
Merge pull request #471 from solstag/master
Language selection: case-insensitive and system language
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -27,9 +27,6 @@ $a->install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? fal @include(".htconfig.php"); -$a->language = get_best_language(); - - /** * * Try to open the database; @@ -54,6 +51,7 @@ if(! $a->install) { load_hooks(); call_hooks('init_1'); + $a->language = get_best_language(); load_translation_table($a->language); // Force the cookie to be secure (https only) if this site is SSL enabled. Must be done before session_start(). @@ -69,6 +67,7 @@ if(! $a->install) { } else { // load translations but do not check plugins as we have no database + $a->language = get_best_language(); load_translation_table($a->language,true); } |