X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpruneFileCache.php;h=04319b33bc8c227da8f2de8ee3aa049879712892;hb=37ef56fadd17089b2dd945cecf834683a62cd1b7;hp=1035ff512f710c2550ab415f542f40547ef48308;hpb=6f680554ceb988f3895184167d5006d722a0afb3;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;