From: Rob Church Date: Fri, 14 Apr 2006 18:00:23 +0000 (+0000) Subject: Do onArticleCreate updates upon page import X-Git-Tag: 1.31.0-rc.0~57491 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=b2ba70c5bd1a082c4a6318683ec615b5fd85a33c;p=lhc%2Fweb%2Fwiklou.git Do onArticleCreate updates upon page import --- diff --git a/maintenance/importTextFile.inc b/maintenance/importTextFile.inc index 804a9088a7..165d88437b 100644 --- a/maintenance/importTextFile.inc +++ b/maintenance/importTextFile.inc @@ -35,7 +35,9 @@ function insertNewArticle( &$title, $text, &$user, $comment, $rc ) { $dbw->immediateCommit(); # Update recent changes if appropriate if( $rc ) - updateRecentChanges( $dbw, $title, $user, $comment, strlen( $text ), $articleId ); + updateRecentChanges( $dbw, $title, $user, $comment, strlen( $text ), $articleId ); + # Touch links etc. + Article::onArticleCreate( $title ); return( true ); } else { # Title exists; touch nothing