diff options
author | redmatrix <git@macgirvin.com> | 2016-02-24 11:20:46 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-24 11:20:46 -0800 |
commit | b101a8f6fb3fd3ec0d5466ba1bb7bc9dc9480fba (patch) | |
tree | 88ba8e488264e2cc829d6ad8bae373a46c9fa7b4 /index.php | |
parent | d074c538897532a4ff7945c1e725c64ac264d5c2 (diff) | |
download | volse-hubzilla-b101a8f6fb3fd3ec0d5466ba1bb7bc9dc9480fba.tar.gz volse-hubzilla-b101a8f6fb3fd3ec0d5466ba1bb7bc9dc9480fba.tar.bz2 volse-hubzilla-b101a8f6fb3fd3ec0d5466ba1bb7bc9dc9480fba.zip |
missing function
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); /** |