Re-indent some fixUrl code and realign comments.

Add more fixUrl tests for coverage.  Leading zeroes are
handled strangely.
This commit is contained in:
Colin Kuskie 2007-12-16 22:59:00 +00:00
parent de912cf977
commit 8e52096a0a
2 changed files with 55 additions and 6 deletions

View file

@ -590,10 +590,10 @@ 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
&& lc($self->get("url")) eq lc($self->getId) # only add it if we're creating a new url
&& $url ne lc($self->getId) # but don't assign it the original time
) {
&& !($url =~ /\./) # don't add an extension of the url already contains a dot
&& lc($self->get("url")) eq lc($self->getId) # only add it if we're creating a new url
&& $url ne lc($self->getId) # but don't assign it the original time
) {
$url .= ".".$self->session->setting->get("urlExtension");
}