fix register policy
This commit is contained in:
parent
bec3d15c52
commit
5ca174ae34
|
@ -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>";
|
$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 .= '<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;
|
return $o;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
|
|
||||||
function login_content(&$a) {
|
function login_content(&$a) {
|
||||||
// return login($a->config['register_enabled']);
|
// 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);
|
||||||
}
|
}
|
Loading…
Reference in a new issue