Macro fixes from changeover.

This commit is contained in:
JT Smith 2003-03-03 02:08:26 +00:00
parent ac556717db
commit d1066988b1
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ use WebGUI::URL;
sub process {
my ($sth, %data, $output);
tie %data, 'Tie::CPHash';
%data = WebGUI::SQL->quickHash("select pageId,parentId,title,urlizedTitle from page where pageId=$_[0]");
%data = WebGUI::SQL->quickHash("select pageId,parentId,title,urlizedTitle from page where pageId=$session{page}{pageId}");
if ($data{parentId} == 0) {
$output = $data{title} || $session{page}{title};
} else {

View file

@ -17,7 +17,7 @@ use WebGUI::URL;
#-------------------------------------------------------------------
sub process {
my @param = WebGUI::Macro::getParams($1);
my @param = WebGUI::Macro::getParams($_[0]);
return WebGUI::URL::escape($param[0]);
}