r40601 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40600‎ | r40601 | r40602 >
Date:23:31, 7 September 2008
Author:aaron
Status:old
Tags:
Comment:
Pass in $latest value (for bug 12650)
Modified paths:
  • /trunk/phase3/includes/specials/SpecialImport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialImport.php
@@ -217,12 +217,13 @@
218218
219219 $comment = $detail; // quick
220220 $dbw = wfGetDB( DB_MASTER );
 221+ $latest = $title->getLatestRevID();
221222 $nullRevision = Revision::newNullRevision( $dbw, $title->getArticleId(), $comment, true );
222223 $nullRevision->insertOn( $dbw );
223224 $article = new Article( $title );
224225 # Update page record
225226 $article->updateRevisionOn( $dbw, $nullRevision );
226 - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) );
 227+ wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) );
227228 } else {
228229 $wgOut->addHtml( '<li>' . wfMsgHtml( 'import-nonewrevisions' ) . '</li>' );
229230 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r40770(bug 12650) Make it possible to enter separate expiry times for each restrict...mrzman05:33, 13 September 2008

Status & tagging log