Bug #18771
closedOrder in t3lib_div::getFilesInDir is different from order in File list
100%
Description
On my webserver, I can added some "a" in front of a filename to make this file beeing the first in the order. In the file list in backend, it looked great. "a_newfile.jpg" was on top of the list before all the other "IMG_foo.jpg" files.
The plugin uses t3lib_div::getFilesInDir() to get the files from the file system and it returned the files in an other order. All files, starting with upper case are returned before all files with lower case.
I changed line 2865 of class.t3lib_div.php:
// original
// elseif ($order) {$sortarray[$key]=$entry;}
// my modification
elseif ($order) {$sortarray[$key]=strtolower($entry);}
now it works as I expect it
(issue imported from #M8373)
Updated by Benni Mack over 12 years ago
- Target version deleted (
0)
Note: To reproduce this, check linking on a file, the file list there uses t3lib_div::getFilesInDir() - the file list module works as expected as it does not use this function.
Updated by Gerrit Code Review over 12 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12659
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12659
Updated by Benni Mack over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 11504997bc4ebe26aa6f5f517c1516804f6d4b9a.
Updated by Gerrit Code Review over 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/12685
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/12686
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/12687
Updated by Benni Mack over 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset 8d29e26aca7af38eae349cc5a3e0cb5ee3fab2bd.
Updated by Gerrit Code Review over 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/13195
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/13299
Updated by Alexander Opitz over 11 years ago
- Status changed from Under Review to Resolved
This issue was resolved, the two last gerrit code review message seem to be wrong.