X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRevisions.php;h=3259927a23b6b9599b4fd257041904858e9ef629;hb=ea42d90053b36cef47f318a1d50c18dfafc6b7b8;hp=b816f4384291549ae994c1e04de1d041449c2c4f;hpb=c0e47a90c41a7e5eeb5ce9e513ee2f63fb836dba;p=lhc%2Fweb%2Fwiklou.git 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',