r16881 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16880‎ | r16881 | r16882 >
Date:02:36, 9 October 2006
Author:brion
Status:old
Tags:
Comment:
* (bug 6600) Update article counts on XML import
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialImport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialImport.php
@@ -363,13 +363,14 @@
364364 if( $created ) {
365365 wfDebug( __METHOD__ . ": running onArticleCreate\n" );
366366 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+
374375 wfDebug( __METHOD__ . ": running edit updates\n" );
375376 $article->editUpdates(
376377 $this->getText(),
Index: trunk/phase3/RELEASE-NOTES
@@ -276,6 +276,7 @@
277277 * Replaced {{SERVER}}{{localurl:xxx}} with {{fullurl:xxx}} in localisation files
278278 * Fix regression in Special:Watchlist text header
279279 * (bug 7510) Update article counts etc on undelete
 280+* (bug 6600) Update article counts on XML import
280281
281282
282283 == Languages updated ==