* (bug 6600) Update article counts on XML import
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Oct 2006 02:36:16 +0000 (02:36 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 9 Oct 2006 02:36:16 +0000 (02:36 +0000)
RELEASE-NOTES
includes/SpecialImport.php

index 9984a2f..2a3ced8 100644 (file)
@@ -276,6 +276,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Replaced {{SERVER}}{{localurl:xxx}} with {{fullurl:xxx}} in localisation files
 * Fix regression in Special:Watchlist text header
 * (bug 7510) Update article counts etc on undelete
+* (bug 6600) Update article counts on XML import
 
 
 == Languages updated ==
index fa0ee7e..aaadb66 100644 (file)
@@ -363,13 +363,14 @@ class WikiRevision {
                if( $created ) {
                        wfDebug( __METHOD__ . ": running onArticleCreate\n" );
                        Article::onArticleCreate( $this->title );
-               } else {
-                       if( $changed ) {
-                               wfDebug( __METHOD__ . ": running onArticleEdit\n" );
-                               Article::onArticleEdit( $this->title );
-                       }
-               }
-               if( $created || $changed ) {
+                       
+                       wfDebug( __METHOD__ . ": running create updates\n" );
+                       $article->createUpdates( $revision );
+                       
+               } elseif( $changed ) {
+                       wfDebug( __METHOD__ . ": running onArticleEdit\n" );
+                       Article::onArticleEdit( $this->title );
+                       
                        wfDebug( __METHOD__ . ": running edit updates\n" );
                        $article->editUpdates(
                                $this->getText(),