dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
maintenance: Document secondary purpose of --server
[lhc/web/wiklou.git]
/
maintenance
/
compareParserCache.php
diff --git
a/maintenance/compareParserCache.php
b/maintenance/compareParserCache.php
index
504c7d7
..
b12974b
100644
(file)
--- 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 ) {
$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,
[
'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;
require_once RUN_MAINTENANCE_IF_MAIN;