From c527eaf8f4d4669806cde4b15706b2d9bcd65eab Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 27 Jul 2008 19:24:35 +0000 Subject: [PATCH] set baseRevId (bug 14947) --- includes/Article.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.20.1