Index: trunk/phase3/includes/SpecialImport.php |
— | — | @@ -208,17 +208,10 @@ |
209 | 209 | $dbw = wfGetDB( DB_MASTER ); |
210 | 210 | $nullRevision = Revision::newNullRevision( |
211 | 211 | $dbw, $title->getArticleId(), $comment, true ); |
212 | | - $nullRevId = $nullRevision->insertOn( $dbw ); |
213 | | - |
| 212 | + $nullRevision->insertOn( $dbw ); |
214 | 213 | # Update page record |
215 | | - $dbw->update( 'page', |
216 | | - array( /* SET */ |
217 | | - 'page_touched' => $dbw->timestamp(), |
218 | | - 'page_latest' => $nullRevId |
219 | | - ), array( /* WHERE */ |
220 | | - 'page_id' => $title->getArticleId() |
221 | | - ), __METHOD__ |
222 | | - ); |
| 214 | + $article = new Article( $title ); |
| 215 | + $article->updateRevisionOn( $dbw, $nullRevision ); |
223 | 216 | } |
224 | 217 | } |
225 | 218 | |