summaryrefslogtreecommitdiff
path: root/login_register.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-06-04 15:35:49 +0000
committerfisharebest <fisharebest@gmail.com>2010-06-04 15:35:49 +0000
commit5f5d48dd322168dec5982ec43f81faecbd015eaf (patch)
tree5de10b148ba8eddb2c70838eff7dfbb5da8750c9 /login_register.php
parent6863d4e223bda9c8a096688136d1422553ac849c (diff)
downloadwebtrees-5f5d48dd322168dec5982ec43f81faecbd015eaf.tar.gz
webtrees-5f5d48dd322168dec5982ec43f81faecbd015eaf.tar.bz2
webtrees-5f5d48dd322168dec5982ec43f81faecbd015eaf.zip
Remove global USE_REGISTRATION_MODULE. Fetch this setting whenever it is used.
Diffstat (limited to 'login_register.php')
-rw-r--r--login_register.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/login_register.php b/login_register.php
index 93f2b26405..1388e53f8b 100644
--- a/login_register.php
+++ b/login_register.php
@@ -155,7 +155,7 @@ switch ($action) {
case "register" :
$_SESSION["good_to_send"] = true;
- if (!$USE_REGISTRATION_MODULE) {
+ if (!get_site_setting('USE_REGISTRATION_MODULE')) {
header("Location: index.php");
exit;
}
@@ -303,7 +303,7 @@ switch ($action) {
}
case "registernew" :
- if (!$USE_REGISTRATION_MODULE) {
+ if (!get_site_setting('USE_REGISTRATION_MODULE')) {
header("Location: index.php");
exit;
}
@@ -437,7 +437,7 @@ switch ($action) {
break;
case "userverify" :
- if (!$USE_REGISTRATION_MODULE) {
+ if (!get_site_setting('USE_REGISTRATION_MODULE')) {
header("Location: index.php");
exit;
}
@@ -468,7 +468,7 @@ switch ($action) {
break;
case "verify_hash" :
- if (!$USE_REGISTRATION_MODULE) {
+ if (!get_site_setting('USE_REGISTRATION_MODULE')) {
header("Location: index.php");
exit;
}