X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=beda739fdb19d06b2768c5ef5fb3d46057d675f0;hb=e36f2bb1fb3439e9993c7568e57140c4f954b772;hp=ed66bad147470f3ca0857d41d5e094e3b110447c;hpb=20e71d21a6206c03f2137eb82edf8f8b3bc644f2;p=friendica.git diff --git a/mod/home.php b/mod/home.php index ed66bad147..beda739fdb 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,23 +1,28 @@ 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(App &$a) { +function home_content(App $a) { $o = ''; @@ -31,7 +36,7 @@ function home_content(App &$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'); @@ -39,8 +44,8 @@ function home_content(App &$a) { $o .= '

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

'; } + $o .= Login::form($a->query_string, $a->config['register_policy'] == REGISTER_CLOSED ? 0 : 1); - $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); call_hooks("home_content",$o);