[BUGFIX] getFileIndexRecordsForFolder only works for hierarchical path
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ResourceStorage.php
index 5d736a1..4f84ba6 100644 (file)
@@ -1328,7 +1328,7 @@ class ResourceStorage {
                $folder = $this->getFolder($path);
                $rows = array();
                if ($loadIndexRecords) {
                $folder = $this->getFolder($path);
                $rows = array();
                if ($loadIndexRecords) {
-                       $rows = $this->getFileRepository()->getFileIndexRecordsForFolder($folder);
+                       $rows = $this->getFileIndexRepository()->findByFolder($folder);
                }
                $filters = $useFilters == TRUE ? $this->fileAndFolderNameFilters : array();
                $items = $this->driver->getFileList($path, $start, $numberOfItems, $filters, $rows, $recursive);
                }
                $filters = $useFilters == TRUE ? $this->fileAndFolderNameFilters : array();
                $items = $this->driver->getFileList($path, $start, $numberOfItems, $filters, $rows, $recursive);