Merge "Remove duplicate getTitle call in RevisionStore::getNextRevision"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 29 Dec 2017 00:21:55 +0000 (00:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 29 Dec 2017 00:21:56 +0000 (00:21 +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;
@@@ -1708,7 -1708,6 +1708,6 @@@ class RevisionStore implements IDBAcces
                if ( $title === null ) {
                        $title = $this->getTitle( $rev->getPageId(), $rev->getId() );
                }
-               $title = $this->getTitle( $rev->getPageId(), $rev->getId() );
                $next = $title->getNextRevisionID( $rev->getId() );
                if ( $next ) {
                        return $this->getRevisionByTitle( $title, $next );