diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2016-10-07 04:36:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2016-10-07 04:36:45 +0000 |
commit | bddb40db1c34d4b4fd31f3227923b5bc3929f395 (patch) | |
tree | ed9a46ceb1c34700ad1e3fb6ff0c7cf7132a3934 /includes/api/ApiQueryRecentChanges.php | |
parent | b6d8421ab62231c6de53ac71a1bfc0937695ecb3 (diff) | |
parent | a514341e365cecbc6b7e75dbc31242583d026fb1 (diff) | |
download | mediawikicore-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.php | 6 |
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; |