- Bugfix [ 942865 ] urlizedTitle problem. (Thanks to tr0nd).

This commit is contained in:
JT Smith 2004-05-02 15:18:29 +00:00
parent 43ed2faac4
commit b51e210af5
2 changed files with 4 additions and 2 deletions

View file

@ -455,7 +455,7 @@ The page id of the page you're creating a URL for.
sub makeUnique {
my ($url, $test, $pageId);
$url = $_[0];
$url = $_[0] || "_1";
$pageId = $_[1] || "new";
while (($test) = WebGUI::SQL->quickArray("select urlizedTitle from page where urlizedTitle='$url' and pageId<>'$pageId'")) {
if ($url =~ /(.*)(\d+$)/) {