X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrebuildFileCache.php;h=ecdec29a9585cb18da281c55b8a2de5a69c6f109;hb=a54c5ba2befabe60aa4c78a57b4d6b3cf2c81628;hp=1fc1daf5a46f6145dd3467bdde34f6a1c4176d33;hpb=3844fd9d639ed67cd3519eab2d7db440100cdd26;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index 1fc1daf5a4..ecdec29a95 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -82,10 +82,10 @@ class RebuildFileCache extends Maintenance { $overwrite = $this->hasOption( 'overwrite' ); $start = ( $start > 0 ) ? $start - : $dbr->selectField( 'page', 'MIN(page_id)', false, __METHOD__ ); + : $dbr->selectField( 'page', 'MIN(page_id)', '', __METHOD__ ); $end = ( $end > 0 ) ? $end - : $dbr->selectField( 'page', 'MAX(page_id)', false, __METHOD__ ); + : $dbr->selectField( 'page', 'MAX(page_id)', '', __METHOD__ ); if ( !$start ) { $this->fatalError( "Nothing to do." ); } @@ -140,7 +140,7 @@ class RebuildFileCache extends Maintenance { } } - MediaWiki\suppressWarnings(); // header notices + Wikimedia\suppressWarnings(); // header notices // Cache ?action=view $wgRequestTime = microtime( true ); # T24852 ob_start(); @@ -157,7 +157,7 @@ class RebuildFileCache extends Maintenance { $context->getOutput()->clearHTML(); $historyHtml = ob_get_clean(); $historyCache->saveToFileCache( $historyHtml ); - MediaWiki\restoreWarnings(); + Wikimedia\restoreWarnings(); if ( $rebuilt ) { $this->output( "Re-cached page '$title' (id {$row->page_id})..." ); @@ -179,5 +179,5 @@ class RebuildFileCache extends Maintenance { } } -$maintClass = "RebuildFileCache"; +$maintClass = RebuildFileCache::class; require_once RUN_MAINTENANCE_IF_MAIN;