From c8fc3ad7cd47a1545da030109ba743105417c047 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 14 May 2018 19:19:25 -0700 Subject: refactor the 'where does the register link point?' logic --- Zotlabs/Module/Regmod.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Zotlabs/Module/Regmod.php') diff --git a/Zotlabs/Module/Regmod.php b/Zotlabs/Module/Regmod.php index 70635d707..6fe89ca90 100644 --- a/Zotlabs/Module/Regmod.php +++ b/Zotlabs/Module/Regmod.php @@ -13,8 +13,7 @@ class Regmod extends \Zotlabs\Web\Controller { if(! local_channel()) { info( t('Please login.') . EOL); - $o .= '

' . login((\App::$config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1); - return $o; + return login(); } if(! is_site_admin()) { -- cgit v1.2.3