WebGUI 3.6.5 release

This commit is contained in:
JT Smith 2002-04-06 03:32:00 +00:00
parent 11ab194b7a
commit bb66c11a6a
15 changed files with 917 additions and 20 deletions

View file

@ -48,9 +48,10 @@ sub gateway {
#-------------------------------------------------------------------
sub makeUnique {
my ($url, $test);
my ($url, $test, $pageId);
$url = $_[0];
while (($test) = WebGUI::SQL->quickArray("select urlizedTitle from page where urlizedTitle='$url'")) {
$pageId = $_[1] || "new";
while (($test) = WebGUI::SQL->quickArray("select urlizedTitle from page where urlizedTitle='$url' and pageId<>'$pageId'")) {
if ($url =~ /(.*)(\d+$)/) {
$url = $1.($2+1);
} elsif ($test ne "") {