X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fhome.php;h=d28bf3cb43a9fc62b694fae2c2af0d59806b6c97;hb=6d1b98dc0e951445e447a60d3ee17368891d17b8;hp=614fd0e3e8eed8451ad4c16b323df6ac91d3f9b9;hpb=000e6457b4c460aa5a1850b812dc5e622a237685;p=friendica.git
diff --git a/mod/home.php b/mod/home.php
index 614fd0e3e8..d28bf3cb43 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -1,7 +1,11 @@
user['nickname'])) {
goaway(System::baseUrl()."/network");
@@ -32,7 +36,7 @@ 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";
@@ -41,12 +45,12 @@ 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 = '';
- call_hooks("home_content",$content);
+ Addon::callHooks("home_content",$content);
$tpl = get_markup_template('home.tpl');