Anomie has uploaded a new change for review. https://gerrit.wikimedia.org/r/211743
Change subject: ApiResult::META_BC_BOOLS in ApiAbuseFilterCheckMatch ...................................................................... ApiResult::META_BC_BOOLS in ApiAbuseFilterCheckMatch Coded to maintain BC with older versions of MediaWiki core. If that's not needed anymore, a followup should remove all the instances of the check. Bug: T99240 Change-Id: I5dc112598676915416fbacd4c30f218ac84d324d (cherry picked from commit 9d61668ab36ec5447344a7ee326f898ad07d7b7e) --- M api/ApiAbuseFilterCheckMatch.php 1 file changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AbuseFilter refs/changes/43/211743/1 diff --git a/api/ApiAbuseFilterCheckMatch.php b/api/ApiAbuseFilterCheckMatch.php index 9129b97..f426eec 100644 --- a/api/ApiAbuseFilterCheckMatch.php +++ b/api/ApiAbuseFilterCheckMatch.php @@ -54,11 +54,17 @@ $this->dieUsage( 'The filter has invalid syntax', 'badsyntax' ); } - $result = AbuseFilter::checkConditions( $params['filter'], $vars ); + $result = array( + 'result' => AbuseFilter::checkConditions( $params['filter'], $vars ), + ); + if ( defined( 'ApiResult::META_CONTENT' ) ) { + $result[ApiResult::META_BC_BOOLS][] = 'result'; + } + $this->getResult()->addValue( null, $this->getModuleName(), - array( 'result' => $result ) + $result ); } -- To view, visit https://gerrit.wikimedia.org/r/211743 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5dc112598676915416fbacd4c30f218ac84d324d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/AbuseFilter Gerrit-Branch: wmf/1.26wmf5 Gerrit-Owner: Anomie <bjor...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits