aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Home.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-14 19:19:25 -0700
committerzotlabs <mike@macgirvin.com>2018-05-14 19:19:25 -0700
commitc8fc3ad7cd47a1545da030109ba743105417c047 (patch)
treebed9412fa300d325bd9f69fbdac38f585c5cc592 /Zotlabs/Module/Home.php
parent301e405769ad9fbe80955cdad7d9d9192cbfe5b6 (diff)
downloadvolse-hubzilla-c8fc3ad7cd47a1545da030109ba743105417c047.tar.gz
volse-hubzilla-c8fc3ad7cd47a1545da030109ba743105417c047.tar.bz2
volse-hubzilla-c8fc3ad7cd47a1545da030109ba743105417c047.zip
refactor the 'where does the register link point?' logic
Diffstat (limited to 'Zotlabs/Module/Home.php')
-rw-r--r--Zotlabs/Module/Home.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Home.php b/Zotlabs/Module/Home.php
index 79449c3b2..4b3e596a9 100644
--- a/Zotlabs/Module/Home.php
+++ b/Zotlabs/Module/Home.php
@@ -89,11 +89,11 @@ class Home extends \Zotlabs\Web\Controller {
$sitename = get_config('system','sitename');
if($sitename)
- $o .= '<h1 class="home-welcome">' . sprintf( t("Welcome to %s") ,$sitename) . '</h1>';
+ $o .= '<h1 class="home-welcome">' . sprintf( t('Welcome to %s') ,$sitename) . '</h1>';
$loginbox = get_config('system','login_on_homepage');
if(intval($loginbox) || $loginbox === false)
- $o .= login((\App::$config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
+ $o .= login(true);
return $o;