https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112947

Revision: 112947
Author:   aaron
Date:     2012-03-03 12:46:58 +0000 (Sat, 03 Mar 2012)
Log Message:
-----------
[Title] In moveToInternal(), just use getParentId() on the null revision object 
as the base ID rather than $latest. They should conceptually be the same but 
the former was already fetched with master data.

Modified Paths:
--------------
    trunk/phase3/includes/Title.php

Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php     2012-03-03 12:31:53 UTC (rev 112946)
+++ trunk/phase3/includes/Title.php     2012-03-03 12:46:58 UTC (rev 112947)
@@ -3595,7 +3595,6 @@
                $comment = $wgContLang->truncate( $comment, 255 );
 
                $oldid = $this->getArticleID();
-               $latest = $this->getLatestRevID();
 
                $dbw = wfGetDB( DB_MASTER );
 
@@ -3636,7 +3635,7 @@
                $newpage->updateRevisionOn( $dbw, $nullRevision );
 
                wfRunHooks( 'NewRevisionFromEditComplete',
-                       array( $newpage, $nullRevision, $latest, $wgUser ) );
+                       array( $newpage, $nullRevision, 
$nullRevision->getParentId(), $wgUser ) );
 
                $newpage->doEditUpdates( $nullRevision, $wgUser, array( 
'changed' => false ) );
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to