X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FRevisionList.php;h=731d1b3e5dc2a9a19d28cce174b353d95b43d327;hb=4b320e79af0ca4fc0bed35ead8807fd12bc88920;hp=1df0ca0a98b6a8791941d9ecc6655c9a62579e9e;hpb=93ced1b3507ea3bbadf02c4ab1c84fbd29682bac;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/RevisionList.php b/includes/RevisionList.php index 1df0ca0a98..731d1b3e5d 100644 --- a/includes/RevisionList.php +++ b/includes/RevisionList.php @@ -121,7 +121,7 @@ abstract class RevisionListBase extends ContextSource { /** * Do the DB query to iterate through the objects. - * @param IDatabase $db DatabaseBase object to use for the query + * @param IDatabase $db DB object to use for the query */ abstract public function doQuery( $db ); @@ -268,19 +268,19 @@ class RevisionList extends RevisionListBase { * @return mixed */ public function doQuery( $db ) { - $conds = array( 'rev_page' => $this->title->getArticleID() ); + $conds = [ 'rev_page' => $this->title->getArticleID() ]; if ( $this->ids !== null ) { $conds['rev_id'] = array_map( 'intval', $this->ids ); } return $db->select( - array( 'revision', 'page', 'user' ), + [ 'revision', 'page', 'user' ], array_merge( Revision::selectFields(), Revision::selectUserFields() ), $conds, __METHOD__, - array( 'ORDER BY' => 'rev_id DESC' ), - array( + [ 'ORDER BY' => 'rev_id DESC' ], + [ 'page' => Revision::pageJoinCond(), - 'user' => Revision::userJoinCond() ) + 'user' => Revision::userJoinCond() ] ); } @@ -350,11 +350,11 @@ class RevisionItem extends RevisionItemBase { return Linker::linkKnown( $this->list->title, $date, - array(), - array( + [], + [ 'oldid' => $this->revision->getId(), 'unhide' => 1 - ) + ] ); } @@ -372,12 +372,12 @@ class RevisionItem extends RevisionItemBase { return Linker::linkKnown( $this->list->title, $this->list->msg( 'diff' )->escaped(), - array(), - array( + [], + [ 'diff' => $this->revision->getId(), 'oldid' => 'prev', 'unhide' => 1 - ) + ] ); } }