X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpruneFileCache.php;h=04319b33bc8c227da8f2de8ee3aa049879712892;hb=03293f1f693d9acb4c6b00a50fedfcaac4b51a91;hp=1035ff512f710c2550ab415f542f40547ef48308;hpb=58858df842f91d9ea1c9f9b6f3c767d8b204886b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php index 1035ff512f..04319b33bc 100644 --- a/maintenance/pruneFileCache.php +++ b/maintenance/pruneFileCache.php @@ -81,7 +81,7 @@ class PruneFileCache extends Maintenance { protected function prune_directory( $dir, $report = false ) { $tsNow = time(); $dirHandle = opendir( $dir ); - while ( false !== ( $file = readdir( $dirHandle ) ) ) { + while ( ( $file = readdir( $dirHandle ) ) !== false ) { // Skip ".", "..", and also any dirs or files like ".svn" or ".htaccess" if ( $file[0] != "." ) { $path = $dir . '/' . $file; // absolute @@ -107,5 +107,5 @@ class PruneFileCache extends Maintenance { } } -$maintClass = "PruneFileCache"; +$maintClass = PruneFileCache::class; require_once RUN_MAINTENANCE_IF_MAIN;