Fixed a bug where registration link would appear even if anonymous registration were turned off.

This commit is contained in:
JT Smith 2002-07-10 22:33:40 +00:00
parent 11c8544977
commit cbcb32922d

View file

@ -56,7 +56,9 @@ sub _replacement {
$f->raw('<span class="formSubtext"><br></span>');
$f->submit(WebGUI::International::get(52));
$temp .= $f->print;
$temp .= '<a href="'.WebGUI::URL::page('op=createAccount').'">'.WebGUI::International::get(407).'</a>';
if ($session{setting}{anonymousRegistration}) {
$temp .= '<a href="'.WebGUI::URL::page('op=createAccount').'">'.WebGUI::International::get(407).'</a>';
}
}
$temp .= '</div>';
return $temp;