fixed: Copied assets don't always get URL extensions added

This commit is contained in:
Graham Knop 2009-08-19 16:28:38 +00:00
parent 718b166ae7
commit 4350966866
2 changed files with 1 additions and 1 deletions

View file

@ -700,7 +700,6 @@ sub fixUrl {
# add automatic extension if we're supposed to
if ($self->session->setting->get("urlExtension") ne "" #don't add an extension if one isn't set
&& !($url =~ /\./) # don't add an extension of the url already contains a dot
&& !$self->get("url") # Only add it if this is a new asset.
&& $url ne lc($self->getId) # but don't assign it the original time
) {
$url .= ".".$self->session->setting->get("urlExtension");