X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRevisions.php;h=3259927a23b6b9599b4fd257041904858e9ef629;hp=b816f4384291549ae994c1e04de1d041449c2c4f;hb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;hpb=9ec4072d835fd971bd0416c1a790b5a29f520abb diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index b816f43842..3259927a23 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -313,7 +313,8 @@ class ApiQueryRevisions extends ApiQueryRevisionsBase { $count = 0; $generated = []; - $res = $this->select( __METHOD__ ); + $hookData = []; + $res = $this->select( __METHOD__, [], $hookData ); foreach ( $res as $row ) { if ( ++$count > $this->limit ) { @@ -350,7 +351,8 @@ class ApiQueryRevisions extends ApiQueryRevisionsBase { } } - $fit = $this->addPageSubItem( $row->rev_page, $rev, 'rev' ); + $fit = $this->processRow( $row, $rev, $hookData ) && + $this->addPageSubItem( $row->rev_page, $rev, 'rev' ); if ( !$fit ) { if ( $enumRevMode ) { $this->setContinueEnumParameter( 'continue',