Index: trunk/phase3/includes/SpecialImport.php |
— | — | @@ -363,13 +363,14 @@ |
364 | 364 | if( $created ) { |
365 | 365 | wfDebug( __METHOD__ . ": running onArticleCreate\n" ); |
366 | 366 | Article::onArticleCreate( $this->title ); |
367 | | - } else { |
368 | | - if( $changed ) { |
369 | | - wfDebug( __METHOD__ . ": running onArticleEdit\n" ); |
370 | | - Article::onArticleEdit( $this->title ); |
371 | | - } |
372 | | - } |
373 | | - if( $created || $changed ) { |
| 367 | + |
| 368 | + wfDebug( __METHOD__ . ": running create updates\n" ); |
| 369 | + $article->createUpdates( $revision ); |
| 370 | + |
| 371 | + } elseif( $changed ) { |
| 372 | + wfDebug( __METHOD__ . ": running onArticleEdit\n" ); |
| 373 | + Article::onArticleEdit( $this->title ); |
| 374 | + |
374 | 375 | wfDebug( __METHOD__ . ": running edit updates\n" ); |
375 | 376 | $article->editUpdates( |
376 | 377 | $this->getText(), |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | * Replaced {{SERVER}}{{localurl:xxx}} with {{fullurl:xxx}} in localisation files |
278 | 278 | * Fix regression in Special:Watchlist text header |
279 | 279 | * (bug 7510) Update article counts etc on undelete |
| 280 | +* (bug 6600) Update article counts on XML import |
280 | 281 | |
281 | 282 | |
282 | 283 | == Languages updated == |