From 7dc340656eefc19fc90cedcead100d87527772af Mon Sep 17 00:00:00 2001 From: tzhelyazkova Date: Thu, 28 Feb 2019 17:58:57 +0100 Subject: [PATCH] Count number of usages for Rollback Confirmation Prompt Bug: T215796 Change-Id: If8536955f4988440af053525ec9d761d4a60794c --- includes/Linker.php | 2 ++ 1 file changed, 2 insertions(+) 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' ); } -- 2.20.1