Migrate rollbackconfirmation events to statslib

Bug: T359242
Change-Id: If545df3079f42605c74eeee2cd58b3359e1a9d96
This commit is contained in:
Thomas Arrow 2024-05-04 15:39:31 +01:00
parent 513b57cbf4
commit 70a9135593

View file

@ -2047,8 +2047,10 @@ class Linker {
if ( $services->getUserOptionsLookup()
->getBoolOption( $context->getUser(), 'showrollbackconfirmation' )
) {
$stats = $services->getStatsdDataFactory();
$stats->increment( 'rollbackconfirmation.event.load' );
$services->getStatsFactory()
->getCounter( 'rollbaseconfirmation_event_load_total' )
->copyToStatsdAt( 'rollbackconfirmation.event.load' )
->increment();
$context->getOutput()->addModules( 'mediawiki.misc-authed-curate' );
}