X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FrebuildFileCache.php;h=2cdf418b2544d8da40bb326ce8e1e1d061a71d2f;hb=803b1005ad1075f3fbd52dd655a8561c869fc4a9;hp=cf398ff6078d97f50a949347e7c58eaf48b12724;hpb=8c9de54eef541b4e5997f0d40f1619ae84b0b3a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php index cf398ff607..2cdf418b25 100644 --- a/maintenance/rebuildFileCache.php +++ b/maintenance/rebuildFileCache.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\MediaWikiServices; + require_once __DIR__ . '/Maintenance.php'; /** @@ -102,7 +104,8 @@ class RebuildFileCache extends Maintenance { // Get the pages $res = $dbr->select( 'page', [ 'page_namespace', 'page_title', 'page_id' ], - [ 'page_namespace' => MWNamespace::getContentNamespaces(), + [ 'page_namespace' => MediaWikiServices::getInstance()->getNamespaceInfo()-> + getContentNamespaces(), "page_id BETWEEN " . (int)$blockStart . " AND " . (int)$blockEnd ], __METHOD__, [ 'ORDER BY' => 'page_id ASC', 'USE INDEX' => 'PRIMARY' ]