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 09ff64334e
commit eac7fe8a64
6 changed files with 15 additions and 14 deletions

View file

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