X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeParserCache.php;h=5d085a8b690e5799c23e7e775b6bdc2ec6b0051e;hb=5b6883f63ac2155f2434233b8a7eddbe8f67afb4;hp=9970c1fd5d78da93efe7596215247f97268c1793;hpb=0bd709dac68652cbb1b06a7c5176e7a4978e1c02;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeParserCache.php b/maintenance/purgeParserCache.php index 9970c1fd5d..5d085a8b69 100644 --- a/maintenance/purgeParserCache.php +++ b/maintenance/purgeParserCache.php @@ -60,7 +60,7 @@ class PurgeParserCache extends Maintenance { $this->output( "Deleting objects expiring before " . $english->timeanddate( $date ) . "\n" ); $pc = wfGetParserCacheStorage(); - $success = $pc->deleteObjectsExpiringBefore( $date, array( $this, 'showProgress' ) ); + $success = $pc->deleteObjectsExpiringBefore( $date, [ $this, 'showProgress' ] ); if ( !$success ) { $this->error( "\nCannot purge this kind of parser cache.", 1 ); }