Templatized the Site Map.

This commit is contained in:
JT Smith 2002-11-30 20:34:16 +00:00
parent 31f5de82b6
commit 937f9aa4ea
5 changed files with 59 additions and 48 deletions

View file

@ -664,7 +664,8 @@ sub set {
".$_[0]->{_property}{sequenceNumber}.",
".$_[0]->{_property}{pageId}."
)");
WebGUI::SQL->write("insert into ".$_[0]->{_property}{namespace}." (wobjectId) values (".$_[0]->{_property}{wobjectId}.")");
WebGUI::SQL->write("insert into ".$_[0]->{_property}{namespace}." (wobjectId)
values (".$_[0]->{_property}{wobjectId}.")");
}
$_[0]->{_property}{lastEdited} = time();
$_[0]->{_property}{editedBy} = $session{user}{userId};
@ -684,9 +685,10 @@ sub set {
where wobjectId=".$_[0]->{_property}{wobjectId};
WebGUI::SQL->write($sql);
if (@update) {
WebGUI::SQL->write("update ".$_[0]->{_property}{namespace}." set ".join(",",@update)." where wobjectId=".$_[0]->{_property}{wobjectId});
WebGUI::SQL->write("update ".$_[0]->{_property}{namespace}." set ".join(",",@update)."
where wobjectId=".$_[0]->{_property}{wobjectId});
}
WebGUI::ErrorHandler::audit("edited Wobject ".$_[0]->{_property}{wobjectId});
WebGUI::ErrorHandler::audit("edited Wobject ".$_[0]->{_property}{wobjectId});
}