X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=maintenance%2FrebuildFileCache.php;h=ae6a75e5bcb3c0fe732e92feab499f6acb25968c;hb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;hp=0b5b9b04e3b0e77a12890b4b8d09ff817c5bcbb6;hpb=863b4880ad8c244dfb8d99b8488e7e0f64513aea;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index 0b5b9b04e3..ae6a75e5bc 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -104,7 +104,7 @@ class RebuildFileCache extends Maintenance { $res = $dbr->select( 'page', [ 'page_namespace', 'page_title', 'page_id' ], [ 'page_namespace' => MWNamespace::getContentNamespaces(), - "page_id BETWEEN $blockStart AND $blockEnd" ], + "page_id BETWEEN " . (int)$blockStart . " AND " . (int)$blockEnd ], __METHOD__, [ 'ORDER BY' => 'page_id ASC', 'USE INDEX' => 'PRIMARY' ] ); @@ -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;