From b0955f6fe1795b8899ac26bcf8b6575f7ba4e0d7 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 12 Sep 2002 02:28:26 +0000 Subject: [PATCH] Oracle compatibility fixes. --- docs/upgrades/upgrade_4.6.7-4.6.8.sql | 2 +- lib/WebGUI/Template.pm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/upgrades/upgrade_4.6.7-4.6.8.sql b/docs/upgrades/upgrade_4.6.7-4.6.8.sql index db8cff4ae..e4d28158e 100644 --- a/docs/upgrades/upgrade_4.6.7-4.6.8.sql +++ b/docs/upgrades/upgrade_4.6.7-4.6.8.sql @@ -2,7 +2,7 @@ insert into webguiVersion values ('4.6.8','upgrade',unix_timestamp()); delete from international where internationalId=12 and namespace='Poll'); INSERT INTO international VALUES (12,'Poll',1,'Total Votes:',1031514049); INSERT INTO international VALUES (12,'Poll',7,'ΧάΝΆΖ±ΘΛΚύ:',1031514049);' - +alter table page modify title varchar(255) null; diff --git a/lib/WebGUI/Template.pm b/lib/WebGUI/Template.pm index 78e535681..35751800f 100644 --- a/lib/WebGUI/Template.pm +++ b/lib/WebGUI/Template.pm @@ -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; }