- Bugfix [ 942865 ] urlizedTitle problem. (Thanks to tr0nd).
This commit is contained in:
parent
43ed2faac4
commit
b51e210af5
2 changed files with 4 additions and 2 deletions
|
|
@ -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+$)/) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue