X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcompareParserCache.php;h=b12974b06e9e1cb68380a1c122b42b8ee2f3042c;hb=c99e9beff7d7c1a5a48f8d6f869a42425021c62b;hp=504c7d7acec726029c3b71803120ec2ca4374adc;hpb=91be4ee4645e28866910f654c6eda730a692fc90;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/compareParserCache.php b/maintenance/compareParserCache.php index 504c7d7ace..b12974b06e 100644 --- a/maintenance/compareParserCache.php +++ b/maintenance/compareParserCache.php @@ -45,7 +45,12 @@ class CompareParserCache extends Maintenance { $withdiff = 0; $parserCache = MediaWikiServices::getInstance()->getParserCache(); while ( $pages-- > 0 ) { - $row = $dbr->selectRow( 'page', '*', + $row = $dbr->selectRow( 'page', + // @todo Title::selectFields() or Title::getQueryInfo() or something + [ + 'page_namespace', 'page_title', 'page_id', + 'page_len', 'page_is_redirect', 'page_latest', + ], [ 'page_namespace' => $this->getOption( 'namespace' ), 'page_is_redirect' => 0, @@ -103,5 +108,5 @@ class CompareParserCache extends Maintenance { } } -$maintClass = "CompareParserCache"; +$maintClass = CompareParserCache::class; require_once RUN_MAINTENANCE_IF_MAIN;