From 7a937b2b754029fa0747b7ef076434301a3ffce1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 7 Sep 2008 23:31:09 +0000 Subject: [PATCH] Pass in $latest value (for bug 12650) --- includes/specials/SpecialImport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index e384a11b35..23e7020291 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -217,12 +217,13 @@ class ImportReporter { $comment = $detail; // quick $dbw = wfGetDB( DB_MASTER ); + $latest = $title->getLatestRevID(); $nullRevision = Revision::newNullRevision( $dbw, $title->getArticleId(), $comment, true ); $nullRevision->insertOn( $dbw ); $article = new Article( $title ); # Update page record $article->updateRevisionOn( $dbw, $nullRevision ); - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); + wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) ); } else { $wgOut->addHtml( '
  • ' . wfMsgHtml( 'import-nonewrevisions' ) . '
  • ' ); } -- 2.20.1