X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhome.php;h=5f8d6a64ff9826751d098b2479e0b951cd92c029;hb=c54a2c1e83822f6e043b449468570d2c9ed3ab3a;hp=b1708d80a2f02e36fe78b650841581508323a316;hpb=dbf7c7d9ad697f7951f102c8372e7d65c167de96;p=friendica.git diff --git a/mod/home.php b/mod/home.php index b1708d80a2..5f8d6a64ff 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,5 +1,10 @@ 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')); } }} @@ -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);