Oracle compatibility fixes.

This commit is contained in:
JT Smith 2002-09-12 02:28:26 +00:00
parent 275e7877df
commit b0955f6fe1
2 changed files with 4 additions and 4 deletions

View file

@ -30,9 +30,9 @@ sub countPositions {
#-------------------------------------------------------------------
sub generate {
my ($output, $content, %template);
%template = WebGUI::SQL->quickHash("select * from template where templateId=".$_[1]);
$content = $template{template};
my ($output, $content, $template);
$template = WebGUI::SQL->quickHashRef("select * from template where templateId=".$_[1]);
$content = $template->{template};
$content =~ s/\^(\d+)\;/${$_[0]}{$1}/g;
return $content;
}