From: Aaron Schulz Date: Sun, 27 Jul 2008 19:24:35 +0000 (+0000) Subject: set baseRevId (bug 14947) X-Git-Tag: 1.31.0-rc.0~46345 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=c527eaf8f4d4669806cde4b15706b2d9bcd65eab;p=lhc%2Fweb%2Fwiklou.git set baseRevId (bug 14947) --- diff --git a/includes/Article.php b/includes/Article.php index 5795fc0c9a..a01469d42b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1885,6 +1885,7 @@ class Article { $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); $nullRevId = $nullRevision->insertOn( $dbw ); + $latest = $this->getLatest(); # Update page record $dbw->update( 'page', array( /* SET */ @@ -1896,7 +1897,7 @@ class Article { ), 'Article::protect' ); - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, false) ); + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, $latest) ); wfRunHooks( 'ArticleProtectComplete', array( &$this, &$wgUser, $limit, $reason ) ); # Update the protection log