Remove duplicate getTitle call in RevisionStore::getNextRevision
authoraddshore <addshorewiki@gmail.com>
Thu, 28 Dec 2017 13:15:49 +0000 (13:15 +0000)
committeraddshore <addshorewiki@gmail.com>
Thu, 28 Dec 2017 13:15:49 +0000 (13:15 +0000)
Change-Id: I5b7cd0e2a9ce413e582b4bdeeebc94a143896728

includes/Storage/RevisionStore.php

index 2698f13..e139faf 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 );