X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=5f6d74adb9be383a62e917542f1103f186273d81;hb=64d0616762efcff413a335f2fdde4d8219d44895;hp=3d8648528cf7609f5e847fc5572d10c736ddaea1;hpb=60e0f79b9f9e94b19cc412eac41e5d8f8fec2383;p=friendica.git diff --git a/index.php b/index.php old mode 100644 new mode 100755 index 3d8648528c..5f6d74adb9 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /** * - * Friendika + * Friendica * */ @@ -75,8 +75,6 @@ $a->timezone = (($default_timezone) ? $default_timezone : 'UTC'); date_default_timezone_set($a->timezone); -$a->init_pagehead(); - session_start(); /** @@ -115,6 +113,16 @@ if((x($_SESSION,'authenticated')) || (x($_POST,'auth-params')) || ($a->module == if(! x($_SESSION,'authenticated')) header('X-Account-Management-Status: none'); + +/* + * Create the page head after setting the language + * and getting any auth credentials + */ + +$a->init_pagehead(); + + + if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array(); @@ -133,6 +141,7 @@ if($install) else check_config($a); +nav_set_selected('nothing'); $arr = array('app_menu' => $a->apps);