X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FRevisionList.php;h=fa454e07e3b6d6fa8acfa3a2c4b2d1e3fd2cdb66;hp=b0bc60a18858132ce0c1bd9e1dc19949b7cd6111;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=c05926bc7ce57cbea42e90053ef799fa58b9da1e diff --git a/includes/RevisionList.php b/includes/RevisionList.php index b0bc60a188..fa454e07e3 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -296,15 +296,14 @@ class RevisionList extends RevisionListBase { if ( $this->ids !== null ) { $conds['rev_id'] = array_map( 'intval', $this->ids ); } + $revQuery = Revision::getQueryInfo( [ 'page', 'user' ] ); return $db->select( - [ 'revision', 'page', 'user' ], - array_merge( Revision::selectFields(), Revision::selectUserFields() ), + $revQuery['tables'], + $revQuery['fields'], $conds, __METHOD__, [ 'ORDER BY' => 'rev_id DESC' ], - [ - 'page' => Revision::pageJoinCond(), - 'user' => Revision::userJoinCond() ] + $revQuery['joins'] ); }