diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2024-10-15 19:57:34 -0400 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2024-10-16 13:30:12 -0400 |
commit | e7db78e8d6a3e4eb723bdd4985004492504f0b68 (patch) | |
tree | e284069a0f3ceafa52ecf0811c6d717621693c06 /includes/api/ApiQueryLogEvents.php | |
parent | 4acdea458f39f3491feb605001b52696086b1e7e (diff) | |
download | mediawikicore-e7db78e8d6a3e4eb723bdd4985004492504f0b68.tar.gz mediawikicore-e7db78e8d6a3e4eb723bdd4985004492504f0b68.zip |
Replace uses of deprecated ChangeTags static methods
Bug: T360664
Change-Id: I3363a225e54bb2cae01ba066d432a8b7b21933d2
Diffstat (limited to 'includes/api/ApiQueryLogEvents.php')
-rw-r--r-- | includes/api/ApiQueryLogEvents.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index aa57604db7ff..528f0df727ef 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -22,7 +22,6 @@ namespace MediaWiki\Api; -use ChangeTags; use DatabaseLogEntry; use LogEventsList; use LogFormatterFactory; @@ -31,6 +30,7 @@ use MediaWiki\CommentFormatter\CommentFormatter; use MediaWiki\CommentFormatter\RowCommentFormatter; use MediaWiki\CommentStore\CommentStore; use MediaWiki\MainConfigNames; +use MediaWiki\MediaWikiServices; use MediaWiki\ParamValidator\TypeDef\NamespaceDef; use MediaWiki\ParamValidator\TypeDef\UserDef; use MediaWiki\Storage\NameTableAccessException; @@ -167,7 +167,10 @@ class ApiQueryLogEvents extends ApiQueryBase { } if ( $this->fld_tags ) { - $this->addFields( [ 'ts_tags' => ChangeTags::makeTagSummarySubquery( 'logging' ) ] ); + $this->addFields( [ + 'ts_tags' => MediaWikiServices::getInstance()->getChangeTagsStore() + ->makeTagSummarySubquery( 'logging' ) + ] ); } if ( $params['tag'] !== null ) { |