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)
includes/Storage/RevisionStore.php

index 6451bdb..0209621 100644 (file)
@@ -1708,7 +1708,6 @@ class RevisionStore implements IDBAccessObject, RevisionFactory, RevisionLookup
                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 );