jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/348465 )

Change subject: Remove usage of RequestContext::getStats()
......................................................................


Remove usage of RequestContext::getStats()

Bug: T156810
Change-Id: Ie49a27cc477c33d195131b2d17d1a4a233346490
---
M Collection.body.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Collection.body.php b/Collection.body.php
index c41b0f2..ce6d548 100644
--- a/Collection.body.php
+++ b/Collection.body.php
@@ -1041,7 +1041,7 @@
                $this->setHeaders();
                $request = $this->getRequest();
                $out = $this->getOutput();
-               $stats = $out->getStats();
+               $stats = 
MediaWiki\MediaWikiServices::getInstance()->getStatsdDataFactory();
 
                $collectionId = $request->getVal( 'collection_id' );
                $writer = $request->getVal( 'writer' );

-- 
To view, visit https://gerrit.wikimedia.org/r/348465
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie49a27cc477c33d195131b2d17d1a4a233346490
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Collection
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: C. Scott Ananian <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to