Oracle compatibility fixes.
This commit is contained in:
parent
275e7877df
commit
b0955f6fe1
2 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@ insert into webguiVersion values ('4.6.8','upgrade',unix_timestamp());
|
||||||
delete from international where internationalId=12 and namespace='Poll');
|
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',1,'Total Votes:',1031514049);
|
||||||
INSERT INTO international VALUES (12,'Poll',7,'总投票人数:',1031514049);'
|
INSERT INTO international VALUES (12,'Poll',7,'总投票人数:',1031514049);'
|
||||||
|
alter table page modify title varchar(255) null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,9 @@ sub countPositions {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub generate {
|
sub generate {
|
||||||
my ($output, $content, %template);
|
my ($output, $content, $template);
|
||||||
%template = WebGUI::SQL->quickHash("select * from template where templateId=".$_[1]);
|
$template = WebGUI::SQL->quickHashRef("select * from template where templateId=".$_[1]);
|
||||||
$content = $template{template};
|
$content = $template->{template};
|
||||||
$content =~ s/\^(\d+)\;/${$_[0]}{$1}/g;
|
$content =~ s/\^(\d+)\;/${$_[0]}{$1}/g;
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue