Updated Revision::newFromId() callers to use READ_LATEST as needed
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 12 Mar 2015 23:47:21 +0000 (16:47 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 12 Mar 2015 23:47:21 +0000 (16:47 -0700)
Change-Id: Idcc071e99a712cf3208c10059d476dafe95044cf

includes/page/WikiPage.php

index b1e4f2d..23bbc7c 100644 (file)
@@ -3061,7 +3061,7 @@ class WikiPage implements Page, IDBAccessObject {
                }
 
                // Generate the edit summary if necessary
-               $target = Revision::newFromId( $s->rev_id );
+               $target = Revision::newFromId( $s->rev_id, Revision::READ_LATEST );
                if ( empty( $summary ) ) {
                        if ( $from == '' ) { // no public user name
                                $summary = wfMessage( 'revertpage-nouser' );