[geeklog-cvs] geeklog: Treat $_CONF['disable_new_user_registration'] as boolea...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Jan 17 10:38:47 EST 2010
changeset 7604:4917010c3f2b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/4917010c3f2b
user: Dirk Haun <dirk at haun-online.de>
date: Sun Jan 17 12:13:29 2010 +0100
description:
Treat $_CONF['disable_new_user_registration'] as boolean - don't check for == 1
diffstat:
public_html/lib-common.php | 11 ++++-------
system/lib-security.php | 2 +-
2 files changed, 5 insertions(+), 8 deletions(-)
diffs (33 lines):
diff -r db8cbc27e03b -r 4917010c3f2b public_html/lib-common.php
--- a/public_html/lib-common.php Sun Jan 17 11:26:51 2010 +0100
+++ b/public_html/lib-common.php Sun Jan 17 12:13:29 2010 +0100
@@ -2416,13 +2416,10 @@
$login->set_var( 'lang_password', $LANG01[57] );
$login->set_var( 'lang_forgetpassword', $LANG01[119] );
$login->set_var( 'lang_login', $LANG01[58] );
- if( $_CONF['disable_new_user_registration'] == 1 )
- {
- $login->set_var( 'lang_signup', '' );
- }
- else
- {
- $login->set_var( 'lang_signup', $LANG01[59] );
+ if ($_CONF['disable_new_user_registration']) {
+ $login->set_var('lang_signup', '');
+ } else {
+ $login->set_var('lang_signup', $LANG01[59]);
}
// 3rd party remote authentification.
diff -r db8cbc27e03b -r 4917010c3f2b system/lib-security.php
--- a/system/lib-security.php Sun Jan 17 11:26:51 2010 +0100
+++ b/system/lib-security.php Sun Jan 17 12:13:29 2010 +0100
@@ -1614,7 +1614,7 @@
array('rel' => 'nofollow'));
$loginreq->set_var('login_link', $login_link);
- if ($_CONF['disable_new_user_registration'] == 1) {
+ if ($_CONF['disable_new_user_registration']) {
$loginreq->set_var('newuser_link', '');
$loginreq->set_var('hide_bar', ' style="display:none"');
} else {
More information about the geeklog-cvs
mailing list