fixed a syntax error and the Page and PageTitle macros

This commit is contained in:
JT Smith 2005-01-07 17:14:16 +00:00
parent 81ff5f1c48
commit 2050de56cd
3 changed files with 11 additions and 10 deletions

View file

@ -16,10 +16,11 @@ use WebGUI::Session;
#-------------------------------------------------------------------
sub process {
my (@param, $temp);
@param = WebGUI::Macro::getParams($_[0]);
$temp = $session{page}{$param[0]};
return $temp;
my @param = WebGUI::Macro::getParams($_[0]);
if (exists $session{asset}) {
return $session{asset}->get($param[0]);
}
return "";
}