Merge "Revert "[MCR] Add optional $title param to Revision byId methods""
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Dec 2017 10:28:21 +0000 (10:28 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 29 Dec 2017 10:28:21 +0000 (10:28 +0000)
1  2 
includes/Storage/RevisionStore.php

@@@ -32,7 -32,7 +32,7 @@@ use Content
  use ContentHandler;
  use DBAccessObjectUtils;
  use Hooks;
 -use \IDBAccessObject;
 +use IDBAccessObject;
  use InvalidArgumentException;
  use IP;
  use LogicException;
@@@ -848,11 -848,10 +848,10 @@@ class RevisionStore implements IDBAcces
         *
         * @param int $id
         * @param int $flags (optional)
-        * @param Title $title (optional)
         * @return RevisionRecord|null
         */
-       public function getRevisionById( $id, $flags = 0, Title $title = null ) {
-               return $this->newRevisionFromConds( [ 'rev_id' => intval( $id ) ], $flags, $title );
+       public function getRevisionById( $id, $flags = 0 ) {
+               return $this->newRevisionFromConds( [ 'rev_id' => intval( $id ) ], $flags );
        }
  
        /**