various bug fixes

This commit is contained in:
JT Smith 2004-07-10 17:14:41 +00:00
parent 577554b904
commit bd7ccaf29d
21 changed files with 68 additions and 30 deletions

View file

@ -19,7 +19,12 @@ use WebGUI::Session;
sub process {
my @param = WebGUI::Macro::getParams($_[0]);
if (my $collateral = WebGUI::Collateral->find($param[0])) {
return '<img src="'.$collateral->getURL.'" '.$collateral->get("parameters").' />';
my $tag = '<img src="'.$collateral->getURL.'" '.$collateral->get("parameters");
unless ($tag =~ /alt\=/i) {
$tag .= ' alt="'.$collateral->get("name").'"';
}
$tag .= ' />';
return $tag;
} else {
return "";
}

View file

@ -63,7 +63,7 @@ sub process {
});
$var{'account.create.url'} = WebGUI::URL::page('op=createAccount');
$var{'account.create.label'} = WebGUI::International::get(407);
$var{'form.footer'} = '</form>';
$var{'form.footer'} = WebGUI::Form::formFooter();
return WebGUI::Template::process($templateId,"Macro/L_loginBox",\%var);
}