Merge "RCFilters: Add missing jQueryMsg dependency"
[lhc/web/wiklou.git] / includes / import / WikiRevision.php
index 93a92ef..3513f8c 100644 (file)
@@ -720,9 +720,7 @@ class WikiRevision {
                                . $this->timestamp . "\n" );
                        return false;
                }
-               $log_id = $dbw->nextSequenceValue( 'logging_log_id_seq' );
                $data = [
-                       'log_id' => $log_id,
                        'log_type' => $this->type,
                        'log_action' => $this->action,
                        'log_timestamp' => $dbw->timestamp( $this->timestamp ),
@@ -731,7 +729,7 @@ class WikiRevision {
                        'log_namespace' => $this->getTitle()->getNamespace(),
                        'log_title' => $this->getTitle()->getDBkey(),
                        'log_params' => $this->params
-               ] + CommentStore::newKey( 'log_comment' )->insert( $dbw, $this->getComment() );
+               ] + CommentStore::getStore()->insert( $dbw, 'log_comment', $this->getComment() );
                $dbw->insert( 'logging', $data, __METHOD__ );
 
                return true;