]> git.mxchange.org Git - friendica.git/blobdiff - mod/home.php
Fixes:
[friendica.git] / mod / home.php
index b1d00b000f556acf52b41773c205e1a4902128ef..d28bf3cb43a9fc62b694fae2c2af0d59806b6c97 100644 (file)
@@ -36,7 +36,7 @@ function home_content(App $a) {
        }
 
        $customhome = false;
-       $defaultheader = '<h1>'.((x($a->config,'sitename')) ? sprintf(L10n::t("Welcome to %s"), $a->config['sitename']) : "").'</h1>';
+       $defaultheader = '<h1>' . (Config::get('config', 'sitename') ? L10n::t('Welcome to %s', Config::get('config', 'sitename')) : '') . '</h1>';
 
        $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'] .= '<link rel="stylesheet" type="text/css" href="'.System::baseUrl().'/home.css'.'" media="all" />';
                }
-       } 
+       }
 
-       $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);