Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -217,12 +217,13 @@ |
218 | 218 | |
219 | 219 | $comment = $detail; // quick |
220 | 220 | $dbw = wfGetDB( DB_MASTER ); |
| 221 | + $latest = $title->getLatestRevID(); |
221 | 222 | $nullRevision = Revision::newNullRevision( $dbw, $title->getArticleId(), $comment, true ); |
222 | 223 | $nullRevision->insertOn( $dbw ); |
223 | 224 | $article = new Article( $title ); |
224 | 225 | # Update page record |
225 | 226 | $article->updateRevisionOn( $dbw, $nullRevision ); |
226 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, false) ); |
| 227 | + wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) ); |
227 | 228 | } else { |
228 | 229 | $wgOut->addHtml( '<li>' . wfMsgHtml( 'import-nonewrevisions' ) . '</li>' ); |
229 | 230 | } |