diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-25 06:05:12 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2016-02-25 06:05:12 +0100 |
commit | 21f2df399d3e21b6322ece16717efe88bcc21621 (patch) | |
tree | 1f6bcf44e803c1ef723b546eb4fcd83dc5f82e87 /index.php | |
parent | ddeab48f9b314eed067c31086945acee33964d37 (diff) | |
parent | 43521bb10b71752b5b3fd953056966ba30df50b6 (diff) | |
download | volse-hubzilla-21f2df399d3e21b6322ece16717efe88bcc21621.tar.gz volse-hubzilla-21f2df399d3e21b6322ece16717efe88bcc21621.tar.bz2 volse-hubzilla-21f2df399d3e21b6322ece16717efe88bcc21621.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -61,25 +61,11 @@ 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(). - - if(intval($a->config['system']['ssl_cookie_protection'])) { - $arr = session_get_cookie_params(); - session_set_cookie_params( - ((isset($arr['lifetime'])) ? $arr['lifetime'] : 0), - ((isset($arr['path'])) ? $arr['path'] : '/'), - ((isset($arr['domain'])) ? $arr['domain'] : $a->get_hostname()), - ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? true : false), - ((isset($arr['httponly'])) ? $arr['httponly'] : true)); - } } -else { - // load translations but do not check plugins as we have no database + + $a->language = get_best_language(); - load_translation_table($a->language,true); -} + load_translation_table($a->language,$a->install); /** |