X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fhome.php;h=5f8d6a64ff9826751d098b2479e0b951cd92c029;hb=3b23f89ca257f972aa9c7beffdd308b1fd1b37e6;hp=bd77a840d0db221cca2c04043c2f2719e95f8814;hpb=20043914e6111ba53df85e1efd3389c99d37302f;p=friendica.git diff --git a/mod/home.php b/mod/home.php index bd77a840d0..5f8d6a64ff 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,6 +1,9 @@ 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')); } }} @@ -33,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'); @@ -41,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);