aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiQueryRecentChanges.php
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2016-10-07 04:36:45 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2016-10-07 04:36:45 +0000
commitbddb40db1c34d4b4fd31f3227923b5bc3929f395 (patch)
treeed9a46ceb1c34700ad1e3fb6ff0c7cf7132a3934 /includes/api/ApiQueryRecentChanges.php
parentb6d8421ab62231c6de53ac71a1bfc0937695ecb3 (diff)
parenta514341e365cecbc6b7e75dbc31242583d026fb1 (diff)
downloadmediawikicore-bddb40db1c34d4b4fd31f3227923b5bc3929f395.tar.gz
mediawikicore-bddb40db1c34d4b4fd31f3227923b5bc3929f395.zip
Merge "API: Add hooks for ApiQueryBase's query and row-processing"
Diffstat (limited to 'includes/api/ApiQueryRecentChanges.php')
-rw-r--r--includes/api/ApiQueryRecentChanges.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php
index c4c8afbdbf11..8b11dc2a47d2 100644
--- a/includes/api/ApiQueryRecentChanges.php
+++ b/includes/api/ApiQueryRecentChanges.php
@@ -361,9 +361,10 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
$this->token = $params['token'];
$this->addOption( 'LIMIT', $params['limit'] + 1 );
+ $hookData = [];
$count = 0;
/* Perform the actual query. */
- $res = $this->select( __METHOD__ );
+ $res = $this->select( __METHOD__, [], $hookData );
$revids = [];
$titles = [];
@@ -391,7 +392,8 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
$vals = $this->extractRowInfo( $row );
/* Add that row's data to our final output. */
- $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals );
+ $fit = $this->processRow( $row, $vals, $hookData ) &&
+ $result->addValue( [ 'query', $this->getModuleName() ], null, $vals );
if ( !$fit ) {
$this->setContinueEnumParameter( 'continue', "$row->rc_timestamp|$row->rc_id" );
break;