X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=33d736a4e1cba2793efd62c8e576a90135f5740f;hb=7f143c3159615b4a10539447bcf250a5fca793a5;hp=614fd0e3e8eed8451ad4c16b323df6ac91d3f9b9;hpb=a13ad278ef571e77919502db1daccd2ca8e43c6b;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 614fd0e3e8..33d736a4e1 100644 --- a/mod/home.php +++ b/mod/home.php @@ -1,7 +1,11 @@ user['nickname'])) { goaway(System::baseUrl()."/network"); @@ -32,21 +36,21 @@ function home_content(App $a) { } $customhome = false; - $defaultheader = '

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

'; + $defaultheader = '

' . (Config::get('config', 'sitename') ? L10n::t('Welcome to %s', Config::get('config', 'sitename')) : '') . '

'; - $homefilepath = $a->basepath . "/home.html"; - $cssfilepath = $a->basepath . "/home.css"; + $homefilepath = $a->getBasePath() . "/home.html"; + $cssfilepath = $a->getBasePath() . "/home.css"; if (file_exists($homefilepath)) { $customhome = $homefilepath; if (file_exists($cssfilepath)) { $a->page['htmlhead'] .= ''; } - } + } - $login = Login::form($a->query_string, $a->config['register_policy'] == REGISTER_CLOSED ? 0 : 1); + $login = Login::form($a->query_string, intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED ? 0 : 1); $content = ''; - call_hooks("home_content",$content); + Addon::callHooks("home_content",$content); $tpl = get_markup_template('home.tpl');