mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-23 10:18:22 +00:00
Further cleanup for core API change
PS25 and later changed things around a fair bit, meaning the previous update needs some further updating. In some cases additional cleanup is also necessary for future core API changes. Bug: T96595 Change-Id: I453625e0035ece45a2fef1136eb6bc0e856ac022
This commit is contained in:
parent
f737f73005
commit
9bad0e1933
|
@ -149,7 +149,7 @@ class ApiQueryAbuseFilters extends ApiQueryBase {
|
|||
}
|
||||
}
|
||||
if ( defined( 'ApiResult::META_CONTENT' ) ) {
|
||||
$result->defineIndexedTagName( array( 'query', $this->getModuleName() ), 'filter' );
|
||||
$result->addIndexedTagName( array( 'query', $this->getModuleName() ), 'filter' );
|
||||
} else {
|
||||
$result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'filter' );
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@ class ApiQueryAbuseLog extends ApiQueryBase {
|
|||
}
|
||||
}
|
||||
if ( defined( 'ApiResult::META_CONTENT' ) ) {
|
||||
$result->defineIndexedTagName( array( 'query', $this->getModuleName() ), 'item' );
|
||||
$result->addIndexedTagName( array( 'query', $this->getModuleName() ), 'item' );
|
||||
} else {
|
||||
$result->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'item' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue