Skip to content

Commit

Permalink
Use GLOB_NOSORT (#5212)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 17, 2022
1 parent deb82ed commit 4c8f0f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redaxo/src/addons/mediapool/lib/cache_media.php
Expand Up @@ -36,7 +36,7 @@ public static function deleteLists()
{
$cachePath = rex_path::addonCache('mediapool');

$glob = glob($cachePath . '*.mlist');
$glob = glob($cachePath . '*.mlist', GLOB_NOSORT);
if (is_array($glob)) {
foreach ($glob as $file) {
rex_file::delete($file);
Expand All @@ -63,7 +63,7 @@ public static function deleteCategoryLists()
{
$cachePath = rex_path::addonCache('mediapool');

$glob = glob($cachePath . '*.mclist');
$glob = glob($cachePath . '*.mclist', GLOB_NOSORT);
if (is_array($glob)) {
foreach ($glob as $file) {
rex_file::delete($file);
Expand Down

0 comments on commit 4c8f0f3

Please sign in to comment.