merging the fixurl bug

This commit is contained in:
JT Smith 2008-10-28 16:34:47 +00:00
parent 3c325c9c5a
commit 347cc82a2d
2 changed files with 6 additions and 0 deletions

View file

@ -643,6 +643,11 @@ sub fixUrl {
$url .= ".".$self->session->setting->get("urlExtension");
}
# make sure the url isn't empty after all that filtering
if ($url eq "") {
$url = $self->getId;
}
# check to see if the url already exists or not, and increment it if it does
if ($self->urlExists($self->session, $url, {assetId=>$self->getId})) {
my @parts = split(/\./,$url);