X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=985c408b5c098c664e700b6537acaf22b676f11c;hb=a5e91175243a41c77a56e73efc3672f20a7e6d23;hp=0e83340cc3fd9f41e280f9117dc20ed5d960cfaf;hpb=e05a8e99749d3518056c93ddcbfc0b2abac78de9;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 0e83340cc3..985c408b5c 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,24 +1,27 @@ user['nickname'])) { - goaway(App::get_baseurl()."/network"); + goaway(System::baseUrl()."/network"); } - if (strlen(get_config('system','singleuser'))) { - goaway(App::get_baseurl()."/profile/" . get_config('system','singleuser')); + if (strlen(Config::get('system','singleuser'))) { + goaway(System::baseUrl()."/profile/" . Config::get('system','singleuser')); } }} - if(! function_exists('home_content')) { -function home_content(&$a) { +function home_content(App $a) { $o = ''; @@ -32,12 +35,11 @@ function home_content(&$a) { /// @TODO No absolute path used, maybe risky (security) if (file_exists('home.html')) { if (file_exists('home.css')) { - $a->page['htmlhead'] .= ''; + $a->page['htmlhead'] .= ''; } - $o .= file_get_contents('home.html');} - - else { + $o .= file_get_contents('home.html'); + } else { $o .= '

'.((x($a->config,'sitename')) ? sprintf(t("Welcome to %s"), $a->config['sitename']) : "").'

'; } @@ -48,5 +50,4 @@ function home_content(&$a) { return $o; - }}