aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Register.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/Register.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/Register.php')
-rw-r--r--Zotlabs/Module/Register.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index 4ab1ccd81..3dded19c7 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -187,8 +187,8 @@ class Register extends \Zotlabs\Web\Controller {
$registration_is = '';
$other_sites = '';
- if(get_config('system','register_policy') == REGISTER_CLOSED) {
- if(get_config('system','directory_mode') == DIRECTORY_MODE_STANDALONE) {
+ if(intval(get_config('system','register_policy')) === REGISTER_CLOSED) {
+ if(intval(get_config('system','directory_mode')) === DIRECTORY_MODE_STANDALONE) {
notice( t('Registration on this hub is disabled.') . EOL);
return;
}
@@ -197,7 +197,7 @@ class Register extends \Zotlabs\Web\Controller {
return $mod->get();
}
- if(get_config('system','register_policy') == REGISTER_APPROVE) {
+ if(intval(get_config('system','register_policy')) == REGISTER_APPROVE) {
$registration_is = t('Registration on this hub is by approval only.');
$other_sites = t('<a href="pubsites">Register at another affiliated hub.</a>');
}