X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FcompressOld.php;h=4414c5b0aeaaf4a6b12d07c4bddfe58a728ec922;hb=526341516a91502ac7cfd2e5590e7432b3f50c5d;hp=c17ce99ca791475c73f6d1ae14ee58474a2bf374;hpb=3a2853e218acb586a00f2e59638de4176aee287f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php index c17ce99ca7..4414c5b0ae 100644 --- a/maintenance/storage/compressOld.php +++ b/maintenance/storage/compressOld.php @@ -103,8 +103,8 @@ class CompressOld extends Maintenance { public function execute() { global $wgDBname; if ( !function_exists( "gzdeflate" ) ) { - $this->error( "You must enable zlib support in PHP to compress old revisions!\n" . - "Please see http://www.php.net/manual/en/ref.zlib.php\n", true ); + $this->fatalError( "You must enable zlib support in PHP to compress old revisions!\n" . + "Please see http://www.php.net/manual/en/ref.zlib.php\n" ); } $type = $this->getOption( 'type', 'concat' ); @@ -361,10 +361,9 @@ class CompressOld extends Maintenance { $usedChunk = false; $primaryOldid = $revs[$i]->rev_text_id; - // @codingStandardsIgnoreStart Ignore avoid function calls in a FOR loop test part warning # Get the text of each revision and add it to the object + // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy(); $j++ ) { - // @codingStandardsIgnoreEnd $oldid = $revs[$i + $j]->rev_text_id; # Get text @@ -472,5 +471,5 @@ class CompressOld extends Maintenance { } } -$maintClass = 'CompressOld'; +$maintClass = CompressOld::class; require_once RUN_MAINTENANCE_IF_MAIN;