Project

General

Profile

Task #51512 ยป patch_51512.diff

Bernhard Kraft, 2013-08-29 14:29

View differences:

typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
// Fetch the files and folders and sort them by name; we have to do
// this here because the directory iterator does return them in
// an arbitrary order
$items = $this->getFileAndFoldernamesInPath($realPath, $recursive);
try {
$items = $this->getFileAndFoldernamesInPath($realPath, $recursive);
} catch (\Exception $e) {
if ($e instanceof \UnexpectedValueException) {
// If a directory is not readable it will get displayed as "locked"
return array();
} else {
throw $e;
}
}
uksort(
$items,
array('\\TYPO3\\CMS\\Core\\Utility\\ResourceUtility', 'recursiveFileListSortingHelper')
    (1-1/1)