diff options
author | root <root@diekershoff.homeunix.net> | 2010-12-08 06:54:13 +0100 |
---|---|---|
committer | root <root@diekershoff.homeunix.net> | 2010-12-08 06:54:13 +0100 |
commit | a96da925712184eec97f6ca01072b7c2bee92a7e (patch) | |
tree | c0a99dd7bbc6b479b040a8ef08cabee5f0f56e38 /index.php | |
parent | af48dbec7f87a75a66f79887b6d2419b661e263d (diff) | |
parent | a42b9ea3dea5e1490dd4aa4852760354d569ea51 (diff) | |
download | volse-hubzilla-a96da925712184eec97f6ca01072b7c2bee92a7e.tar.gz volse-hubzilla-a96da925712184eec97f6ca01072b7c2bee92a7e.tar.bz2 volse-hubzilla-a96da925712184eec97f6ca01072b7c2bee92a7e.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -12,8 +12,12 @@ $install = ((file_exists('.htconfig.php')) ? false : true); @include(".htconfig.php"); -if(isset($lang) && strlen($lang)) - load_translation_table($lang); +// get language setting directly from system variables, bypassing get_config() +// as database may not yet be configured. + +$lang = ((isset($a->config['system']['language'])) ? $a->config['system']['language'] : 'en'); + +load_translation_table($lang); require_once("dba.php"); $db = new dba($db_host, $db_user, $db_pass, $db_data, $install); @@ -122,9 +126,6 @@ $a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array( $page = $a->page; $profile = $a->profile; -$lang = get_config('system','language'); -if($lang === false) - $lang = 'en'; header("Content-type: text/html; charset=utf-8"); |