X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=d3a4cef44ebf5bfca9239583d7923858ce3109e8;hb=0972189372b9220fe0d46ab9c1a964fee18ea330;hp=0ea09c0c7a59ab5248098127684fbceb7d488e6b;hpb=cc9ce39e3f1d7335de2124f78c5ecb02becd197c;p=friendica.git diff --git a/index.php b/index.php index 0ea09c0c7a..d3a4cef44e 100644 --- a/index.php +++ b/index.php @@ -32,9 +32,7 @@ $install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? false -$lang = get_browser_language(); - -load_translation_table($lang); + /** * @@ -58,10 +56,13 @@ if(!$install) { require_once("include/session.php"); load_hooks(); call_hooks('init_1'); + + $maintenance = get_config('system', 'maintenance'); } -$maintenance = get_config('system', 'maintenance'); +$lang = get_browser_language(); +load_translation_table($lang); /** * @@ -141,7 +142,8 @@ if($install) elseif($maintenance) $a->module = 'maintenance'; else { - proc_run('php', 'include/dbupdate.php'); + check_url($a); + check_db(); check_plugins($a); } @@ -181,6 +183,10 @@ if(strlen($a->module)) { * */ + // Compatibility with the Android Diaspora client + if ($a->module == "stream") + $a->module = "network"; + if(is_array($a->plugins) && in_array($a->module,$a->plugins) && file_exists("addon/{$a->module}/{$a->module}.php")) { include_once("addon/{$a->module}/{$a->module}.php"); if(function_exists($a->module . '_module')) @@ -408,7 +414,9 @@ if(!$a->theme['stylesheet']) $stylesheet = current_theme_url(); else $stylesheet = $a->theme['stylesheet']; -$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet)); + +$a->page['htmlhead'] = str_replace('{{$stylesheet}}',$stylesheet,$a->page['htmlhead']); +//$a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array('$stylesheet' => $stylesheet)); $page = $a->page; $profile = $a->profile;