WebGUI 3.6.5 release
This commit is contained in:
parent
11ab194b7a
commit
bb66c11a6a
15 changed files with 917 additions and 20 deletions
|
|
@ -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 "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue