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:
parent
09ff64334e
commit
eac7fe8a64
6 changed files with 15 additions and 14 deletions
|
|
@ -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 } ];
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue