diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-08 17:59:19 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-08 17:59:19 -0700 |
commit | 5ca174ae34edb598e30546e67165b8a2ad77ed59 (patch) | |
tree | 03eb5e1235c93dfdd67b420478b618a95e8e6888 /mod | |
parent | bec3d15c525ff12ba0de53c0b21e03cc9a3a7f39 (diff) | |
download | volse-hubzilla-5ca174ae34edb598e30546e67165b8a2ad77ed59.tar.gz volse-hubzilla-5ca174ae34edb598e30546e67165b8a2ad77ed59.tar.bz2 volse-hubzilla-5ca174ae34edb598e30546e67165b8a2ad77ed59.zip |
fix register policy
Diffstat (limited to 'mod')
-rw-r--r-- | mod/home.php | 2 | ||||
-rw-r--r-- | mod/login.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/home.php b/mod/home.php index a60e96ccb..d796052ad 100644 --- a/mod/home.php +++ b/mod/home.php @@ -19,7 +19,7 @@ function home_content(&$a) { $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://dfrn.org\" name=\"DFRN.org\" >DFRN</a></div>"; $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; - $o .= login(1); + $o .= login(($a->config['register_html'] == REGISTER_CLOSED) ? 0 : 1); return $o; diff --git a/mod/login.php b/mod/login.php index 4ee4e1fa0..ba232a943 100644 --- a/mod/login.php +++ b/mod/login.php @@ -4,5 +4,5 @@ function login_content(&$a) { // return login($a->config['register_enabled']); - return login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); + return login(($a->config['register_policy'] == REGISTER_CLOSED) ? false : true); }
\ No newline at end of file |