Skip to content

Commit e7adb1e

Browse files
author
Jöran Kurschatke
committed
Merge remote-tracking branch 'origin/master'
2 parents 5ea52fe + 40b8d9e commit e7adb1e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Classes/Service/FileCollectionService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ protected function sortFileObjects($imageItems) {
172172
$lowercase = array_map(function($n) {
173173
return strtolower($n->getName());
174174
}, $imageItems);
175-
if ($this->frontendConfigurationManager->getConfiguration()['settings']['order'] === 'desc') {
175+
$configuration = $this->frontendConfigurationManager->getConfiguration();
176+
if ($configuration['settings']['order'] === 'desc') {
176177
array_multisort($lowercase, SORT_DESC, SORT_STRING, $imageItems);
177178
} else {
178179
array_multisort($lowercase, SORT_ASC, SORT_STRING, $imageItems);
@@ -197,4 +198,4 @@ protected function getFileObjectFromFileReference(FileReference $item) {
197198
$returnItem->updateProperties($item->getProperties());
198199
return $returnItem;
199200
}
200-
}
201+
}

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "Simple Image Gallery which renders a FileCollection containing static or folder based images.",
55
"homepage": "https://github.com/Skyfillers/sf_filecollection_gallery",
66
"license": ["GPL-2.0+"],
7-
"version": "1.1.4",
87
"keywords": ["typo3", "extension", "collection", "images", "gallery"],
98
"authors": [
109
{
@@ -29,4 +28,4 @@
2928
"support": {
3029
"issues": "https://github.com/Skyfillers/sf_filecollection_gallery/issues"
3130
}
32-
}
31+
}

0 commit comments

Comments
 (0)