Gallery resolutions are integers. Fixed sorting the resolutions, and fixed the tests to not use bad resolutions. Fixes bug #11787

This commit is contained in:
Colin Kuskie 2010-08-17 11:16:58 -07:00
parent d0c1e56532
commit 86a190e3c6
6 changed files with 15 additions and 14 deletions

View file

@ -279,7 +279,7 @@ sub getResolutions {
my $storage = $self->getStorageLocation;
# Return a list not including the web view image.
return [ sort { $a cmp $b } grep { $_ ne $self->filename } @{ $storage->getFiles } ];
return [ sort { $a <=> $b } grep { $_ ne $self->get("filename") } @{ $storage->getFiles } ];
}
#----------------------------------------------------------------------------