X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=e43d7332de65c1eba55eb66e0fc5a193eaab4a19;hb=d703f4bc52ecc4be95aba966db18b74dfe1d35f2;hp=98733c4c8256c7ddbbbfcffac237889892af338d;hpb=5792b3d3580b9f09460305858293398d8d8a9abf;p=friendica.git diff --git a/index.php b/index.php index 98733c4c82..e43d7332de 100644 --- 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(); /** @@ -95,6 +93,12 @@ if((x($_SESSION,'language')) && ($_SESSION['language'] !== $lang)) { load_translation_table($lang); } +/* + * Create the page head after setting the language + * + */ + +$a->init_pagehead(); /** * @@ -133,6 +137,7 @@ if($install) else check_config($a); +nav_set_selected('nothing'); $arr = array('app_menu' => $a->apps); @@ -140,7 +145,6 @@ call_hooks('app_menu', $arr); $a->apps = $arr['app_menu']; - /** * * We have already parsed the server path into $a->argc and $a->argv @@ -218,6 +222,13 @@ if(strlen($a->module)) { } } +/** + * load current theme info + */ +$theme_info_file = "view/theme/".current_theme()."/theme.php"; +if (file_exists($theme_info_file)){ + require_once($theme_info_file); +} /* initialise content region */