Index: trunk/phase3/includes/Title.php |
— | — | @@ -3595,7 +3595,6 @@ |
3596 | 3596 | $comment = $wgContLang->truncate( $comment, 255 ); |
3597 | 3597 | |
3598 | 3598 | $oldid = $this->getArticleID(); |
3599 | | - $latest = $this->getLatestRevID(); |
3600 | 3599 | |
3601 | 3600 | $dbw = wfGetDB( DB_MASTER ); |
3602 | 3601 | |
— | — | @@ -3636,7 +3635,7 @@ |
3637 | 3636 | $newpage->updateRevisionOn( $dbw, $nullRevision ); |
3638 | 3637 | |
3639 | 3638 | wfRunHooks( 'NewRevisionFromEditComplete', |
3640 | | - array( $newpage, $nullRevision, $latest, $wgUser ) ); |
| 3639 | + array( $newpage, $nullRevision, $nullRevision->getParentId(), $wgUser ) ); |
3641 | 3640 | |
3642 | 3641 | $newpage->doEditUpdates( $nullRevision, $wgUser, array( 'changed' => false ) ); |
3643 | 3642 | |