From: Aaron Schulz Date: Sun, 7 Sep 2008 23:31:09 +0000 (+0000) Subject: Pass in $latest value (for bug 12650) X-Git-Tag: 1.31.0-rc.0~45413 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=7a937b2b754029fa0747b7ef076434301a3ffce1;p=lhc%2Fweb%2Fwiklou.git Pass in $latest value (for bug 12650) --- 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' ) . '
  • ' ); }