From 1fdeaebbb7f1f81770b036758ef1ceacefbafd65 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Sun, 31 Mar 2019 23:46:40 +0100 Subject: [PATCH] logging: Replace deprecated use of CommentStore::getStore() Change-Id: I5c34eda43d0d312bc53fc5e9ad618cb80284e34b --- includes/logging/LogPage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 45d6e1fe99..1fc56bb527 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -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(); -- 2.20.1