X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryAllRevisions.php;h=b64b2c8401b1d5548193cfb3f809741b383a623b;hb=c5e41e5f942c16b30c39d6ad87cd07197212b379;hp=d548c46ce028539ac26d977b3988bf06a5881ba0;hpb=75d8b6c6cd2b70d98242e1246678c12e973a5dfa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryAllRevisions.php b/includes/api/ApiQueryAllRevisions.php index d548c46ce0..b64b2c8401 100644 --- a/includes/api/ApiQueryAllRevisions.php +++ b/includes/api/ApiQueryAllRevisions.php @@ -166,7 +166,8 @@ class ApiQueryAllRevisions extends ApiQueryRevisionsBase { $orderby[] = "rev_id $sort"; $this->addOption( 'ORDER BY', $orderby ); - $res = $this->select( __METHOD__ ); + $hookData = []; + $res = $this->select( __METHOD__, [], $hookData ); $pageMap = []; // Maps rev_page to array index $count = 0; $nextIndex = 0; @@ -210,12 +211,12 @@ class ApiQueryAllRevisions extends ApiQueryRevisionsBase { ]; ApiResult::setIndexedTagName( $a['revisions'], 'rev' ); ApiQueryBase::addTitleInfo( $a, $title ); - $fit = $result->addValue( [ 'query', $this->getModuleName() ], $index, $a ); + $fit = $this->processRow( $row, $a['revisions'][0], $hookData ) && + $result->addValue( [ 'query', $this->getModuleName() ], $index, $a ); } else { $index = $pageMap[$row->rev_page]; - $fit = $result->addValue( - [ 'query', $this->getModuleName(), $index, 'revisions' ], - null, $rev ); + $fit = $this->processRow( $row, $rev, $hookData ) && + $result->addValue( [ 'query', $this->getModuleName(), $index, 'revisions' ], null, $rev ); } if ( !$fit ) { $this->setContinueEnumParameter( 'continue', "$row->rev_timestamp|$row->rev_id" );