logging: Replace deprecated use of CommentStore::getStore()
authorDerick Alangi <alangiderick@gmail.com>
Sun, 31 Mar 2019 22:46:40 +0000 (23:46 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 12 Apr 2019 23:27:34 +0000 (23:27 +0000)
Change-Id: I5c34eda43d0d312bc53fc5e9ad618cb80284e34b

includes/logging/LogPage.php

index 45d6e1f..1fc56bb 100644 (file)
@@ -104,7 +104,11 @@ class LogPage {
                        'log_page' => $this->target->getArticleID(),
                        'log_params' => $this->params
                ];
-               $data += CommentStore::getStore()->insert( $dbw, 'log_comment', $this->comment );
+               $data += MediaWikiServices::getInstance()->getCommentStore()->insert(
+                       $dbw,
+                       'log_comment',
+                       $this->comment
+               );
                $data += ActorMigration::newMigration()->getInsertValues( $dbw, 'log_user', $this->doer );
                $dbw->insert( 'logging', $data, __METHOD__ );
                $newId = $dbw->insertId();