Do onArticleCreate updates upon page import
authorRob Church <robchurch@users.mediawiki.org>
Fri, 14 Apr 2006 18:00:23 +0000 (18:00 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Fri, 14 Apr 2006 18:00:23 +0000 (18:00 +0000)
maintenance/importTextFile.inc

index 804a908..165d884 100644 (file)
@@ -35,7 +35,9 @@ function insertNewArticle( &$title, $text, &$user, $comment, $rc ) {
                $dbw->immediateCommit();\r
                # Update recent changes if appropriate\r
                if( $rc )\r
-                       updateRecentChanges( $dbw, $title, $user, $comment, strlen( $text ), $articleId );              \r
+                       updateRecentChanges( $dbw, $title, $user, $comment, strlen( $text ), $articleId );\r
+               # Touch links etc.\r
+               Article::onArticleCreate( $title );     \r
                return( true );\r
        } else {\r
                # Title exists; touch nothing\r