Tris dans l'index manquant
This commit is contained in:
parent
d3b07ddb88
commit
5cfea185de
@ -347,7 +347,15 @@ class gallery extends common {
|
||||
}
|
||||
// Liste des galeries
|
||||
else {
|
||||
foreach((array) $this->getData(['module', $this->getUrl(0)]) as $galleryId => $gallery) {
|
||||
// Tri des galeries
|
||||
$g = $this->getData(['module', $this->getUrl(0)]);
|
||||
$p = helper::arrayCollumn(helper::arrayCollumn($g,'config'),'position');
|
||||
asort($p,SORT_NUMERIC);
|
||||
$galleries = [];
|
||||
foreach ($p as $positionId => $item) {
|
||||
$galleries [$positionId] = $g[$positionId];
|
||||
}
|
||||
foreach((array) $galleries as $galleryId => $gallery) {
|
||||
if(is_dir($gallery['config']['directory'])) {
|
||||
$iterator = new DirectoryIterator($gallery['config']['directory']);
|
||||
foreach($iterator as $fileInfos) {
|
||||
|
Loading…
Reference in New Issue
Block a user