X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=d28bf3cb43a9fc62b694fae2c2af0d59806b6c97;hb=6d1b98dc0e951445e447a60d3ee17368891d17b8;hp=206a1827ea1d67eb4a0a575b2c39f2cdebdc8cea;hpb=208a149a7b7e25dc84c39e5631cba11d41869bae;p=friendica.git diff --git a/mod/home.php b/mod/home.php index 206a1827ea..d28bf3cb43 100644 --- a/mod/home.php +++ b/mod/home.php @@ -36,7 +36,7 @@ function home_content(App $a) { } $customhome = false; - $defaultheader = '

'.((x($a->config,'sitename')) ? L10n::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"; @@ -45,9 +45,9 @@ function home_content(App $a) { 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 = ''; Addon::callHooks("home_content",$content);