X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fchangetags%2FChangeTagsRevisionList.php;h=8eae23844436f9edb0f9d9e8e63532a1a2496d67;hb=f90634a6a7df959244f79da7b4107982ec792df8;hp=f0dfc0f4db940d5d10064df0eee1594e31f4130e;hpb=9e835aa570544b2f3e8e3050e432d60e30faa9d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/changetags/ChangeTagsRevisionList.php b/includes/changetags/ChangeTagsRevisionList.php index f0dfc0f4db..8eae238444 100644 --- a/includes/changetags/ChangeTagsRevisionList.php +++ b/includes/changetags/ChangeTagsRevisionList.php @@ -34,19 +34,19 @@ class ChangeTagsRevisionList extends ChangeTagsList { */ public function doQuery( $db ) { $ids = array_map( 'intval', $this->ids ); - $queryInfo = array( - 'tables' => array( 'revision', 'user' ), + $queryInfo = [ + 'tables' => [ 'revision', 'user' ], 'fields' => array_merge( Revision::selectFields(), Revision::selectUserFields() ), - 'conds' => array( + 'conds' => [ 'rev_page' => $this->title->getArticleID(), 'rev_id' => $ids, - ), - 'options' => array( 'ORDER BY' => 'rev_id DESC' ), - 'join_conds' => array( + ], + 'options' => [ 'ORDER BY' => 'rev_id DESC' ], + 'join_conds' => [ 'page' => Revision::pageJoinCond(), 'user' => Revision::userJoinCond(), - ), - ); + ], + ]; ChangeTags::modifyDisplayQuery( $queryInfo['tables'], $queryInfo['fields'],