From: Derick Alangi Date: Sun, 31 Mar 2019 22:46:40 +0000 (+0100) Subject: logging: Replace deprecated use of CommentStore::getStore() X-Git-Tag: 1.34.0-rc.0~2021^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=1fdeaebbb7f1f81770b036758ef1ceacefbafd65;p=lhc%2Fweb%2Fwiklou.git logging: Replace deprecated use of CommentStore::getStore() Change-Id: I5c34eda43d0d312bc53fc5e9ad618cb80284e34b --- 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();