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
Merge "maintenance: Script to rename titles for Unicode uppercasing changes"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryAllDeletedRevisions.php
diff --git
a/includes/api/ApiQueryAllDeletedRevisions.php
b/includes/api/ApiQueryAllDeletedRevisions.php
index
8855615
..
beaad43
100644
(file)
--- a/
includes/api/ApiQueryAllDeletedRevisions.php
+++ b/
includes/api/ApiQueryAllDeletedRevisions.php
@@
-49,7
+49,8
@@
class ApiQueryAllDeletedRevisions extends ApiQueryRevisionsBase {
$user = $this->getUser();
$db = $this->getDB();
$params = $this->extractRequestParams( false );
$user = $this->getUser();
$db = $this->getDB();
$params = $this->extractRequestParams( false );
- $revisionStore = MediaWikiServices::getInstance()->getRevisionStore();
+ $services = MediaWikiServices::getInstance();
+ $revisionStore = $services->getRevisionStore();
$result = $this->getResult();
$result = $this->getResult();
@@
-131,7
+132,7
@@
class ApiQueryAllDeletedRevisions extends ApiQueryRevisionsBase {
if ( !is_null( $params['tag'] ) ) {
$this->addTables( 'change_tag' );
$this->addJoinConds(
if ( !is_null( $params['tag'] ) ) {
$this->addTables( 'change_tag' );
$this->addJoinConds(
- [ 'change_tag' => [ '
INNER
JOIN', [ 'ar_rev_id=ct_rev_id' ] ] ]
+ [ 'change_tag' => [ 'JOIN', [ 'ar_rev_id=ct_rev_id' ] ] ]
);
$changeTagDefStore = MediaWikiServices::getInstance()->getChangeTagDefStore();
try {
);
$changeTagDefStore = MediaWikiServices::getInstance()->getChangeTagDefStore();
try {
@@
-156,7
+157,8
@@
class ApiQueryAllDeletedRevisions extends ApiQueryRevisionsBase {
$miser_ns = null;
if ( $mode == 'all' ) {
$miser_ns = null;
if ( $mode == 'all' ) {
- $namespaces = $params['namespace'] ?? MWNamespace::getValidNamespaces();
+ $namespaces = $params['namespace'] ??
+ $services->getNamespaceInfo()->getValidNamespaces();
$this->addWhereFld( 'ar_namespace', $namespaces );
// For from/to/prefix, we have to consider the potential
$this->addWhereFld( 'ar_namespace', $namespaces );
// For from/to/prefix, we have to consider the potential