From cbcb32922d142eedfa170c6ecbee2821e6caf172 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 10 Jul 2002 22:33:40 +0000 Subject: [PATCH] Fixed a bug where registration link would appear even if anonymous registration were turned off. --- lib/WebGUI/Macro/L_loginBox.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Macro/L_loginBox.pm b/lib/WebGUI/Macro/L_loginBox.pm index c01fd219c..aeb0acf2e 100644 --- a/lib/WebGUI/Macro/L_loginBox.pm +++ b/lib/WebGUI/Macro/L_loginBox.pm @@ -56,7 +56,9 @@ sub _replacement { $f->raw('
'); $f->submit(WebGUI::International::get(52)); $temp .= $f->print; - $temp .= ''.WebGUI::International::get(407).''; + if ($session{setting}{anonymousRegistration}) { + $temp .= ''.WebGUI::International::get(407).''; + } } $temp .= ''; return $temp;