r38108 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38107‎ | r38108 | r38109 >
Date:19:24, 27 July 2008
Author:aaron
Status:old
Tags:
Comment:
set baseRevId (bug 14947)
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1885,6 +1885,7 @@
18861886 $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true );
18871887 $nullRevId = $nullRevision->insertOn( $dbw );
18881888
 1889+ $latest = $this->getLatest();
18891890 # Update page record
18901891 $dbw->update( 'page',
18911892 array( /* SET */
@@ -1896,7 +1897,7 @@
18971898 ), 'Article::protect'
18981899 );
18991900
1900 - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, false) );
 1901+ wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, $latest) );
19011902 wfRunHooks( 'ArticleProtectComplete', array( &$this, &$wgUser, $limit, $reason ) );
19021903
19031904 # Update the protection log

Status & tagging log