* (bug 15196) Free external links should be numbered in a localised manner
[lhc/web/wiklou.git] / includes / Import.php
index 42bb521..b8db934 100644 (file)
@@ -219,7 +219,7 @@ class WikiRevision {
 
                } elseif( $changed ) {
                        wfDebug( __METHOD__ . ": running onArticleEdit\n" );
-                       Article::onArticleEdit( $this->title );
+                       Article::onArticleEdit( $this->title, false ); // leave templatelinks for editUpdates()
 
                        wfDebug( __METHOD__ . ": running edit updates\n" );
                        $article->editUpdates(
@@ -247,7 +247,10 @@ class WikiRevision {
                        array( 'log_type' => $this->getType(),
                                'log_action'    => $this->getAction(),
                                'log_timestamp' => $dbw->timestamp( $this->timestamp ),
-                               'log_user_text' => $this->user_text,
+                               'log_namespace' => $this->getTitle()->getNamespace(),
+                               'log_title'     => $this->getTitle()->getDBkey(),
+                               'log_comment'   => $this->getComment(),
+                               #'log_user_text' => $this->user_text,
                                'log_params'    => $this->params ),
                        __METHOD__
                );
@@ -264,7 +267,7 @@ class WikiRevision {
                        'log_action' => $this->action,
                        'log_timestamp' => $dbw->timestamp( $this->timestamp ),
                        'log_user' => User::idFromName( $this->user_text ),
-                       'log_user_text' => $this->user_text,
+                       #'log_user_text' => $this->user_text,
                        'log_namespace' => $this->getTitle()->getNamespace(),
                        'log_title' => $this->getTitle()->getDBkey(),
                        'log_comment' => $this->getComment(),