From: tzhelyazkova Date: Thu, 28 Feb 2019 16:58:57 +0000 (+0100) Subject: Count number of usages for Rollback Confirmation Prompt X-Git-Tag: 1.34.0-rc.0~2439 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=7dc340656eefc19fc90cedcead100d87527772af;p=lhc%2Fweb%2Fwiklou.git Count number of usages for Rollback Confirmation Prompt Bug: T215796 Change-Id: If8536955f4988440af053525ec9d761d4a60794c --- diff --git a/includes/Linker.php b/includes/Linker.php index 6f11c1c8b5..4f9d42379c 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -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' ); }