diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-06-04 15:35:49 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-06-04 15:35:49 +0000 |
| commit | 5f5d48dd322168dec5982ec43f81faecbd015eaf (patch) | |
| tree | 5de10b148ba8eddb2c70838eff7dfbb5da8750c9 /login_register.php | |
| parent | 6863d4e223bda9c8a096688136d1422553ac849c (diff) | |
| download | webtrees-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.php | 8 |
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; } |
