Count number of usages for Rollback Confirmation Prompt
authortzhelyazkova <tonina.zhelyazkova@wikimedia.de>
Thu, 28 Feb 2019 16:58:57 +0000 (17:58 +0100)
committerTonina Zhelyazkova <tonina.zhelyazkova@wikimedia.de>
Thu, 21 Mar 2019 10:57:18 +0000 (10:57 +0000)
Bug: T215796
Change-Id: If8536955f4988440af053525ec9d761d4a60794c

includes/Linker.php

index 6f11c1c..4f9d423 100644 (file)
@@ -1769,6 +1769,8 @@ class Linker {
                }
 
                if ( $context->getUser()->getBoolOption( 'showrollbackconfirmation' ) ) {
+                       $stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
+                       $stats->increment( 'rollbackconfirmation.event.load' );
                        $context->getOutput()->addModules( 'mediawiki.page.rollback.confirmation' );
                }