dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee07b5c
)
Do onArticleCreate updates upon page import
author
Rob Church
<robchurch@users.mediawiki.org>
Fri, 14 Apr 2006 18:00:23 +0000
(18:00 +0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Fri, 14 Apr 2006 18:00:23 +0000
(18:00 +0000)
maintenance/importTextFile.inc
patch
|
blob
|
history
diff --git
a/maintenance/importTextFile.inc
b/maintenance/importTextFile.inc
index
804a908
..
165d884
100644
(file)
--- a/
maintenance/importTextFile.inc
+++ b/
maintenance/importTextFile.inc
@@
-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