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=1fc1daf5a46f6145dd3467bdde34f6a1c4176d33;hpb=2443406d3765e31dc734ea74985420773940c37d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index 1fc1daf5a4..ae6a75e5bc 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -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;