$inner = $context->msg( 'brackets' )->rawParams( $inner )->escaped();
}
- if ( $context->getUser()->getBoolOption( 'showrollbackconfirmation' ) ) {
+ /**
+ * FIXME
+ * Remove all references to DisableRollbackConfirmationFeature
+ * after release of rollback feature. See T199534
+ */
+ if ( !MediaWikiServices::getInstance()
+ ->getMainConfig()->get( 'DisableRollbackConfirmationFeature' ) &&
+ $context->getUser()->getBoolOption( 'showrollbackconfirmation' )
+ ) {
+ $stats = MediaWikiServices::getInstance()->getStatsdDataFactory();
+ $stats->increment( 'rollbackconfirmation.event.load' );
$context->getOutput()->addModules( 'mediawiki.page.rollback.confirmation' );
}
$attrs = [
'data-mw' => 'interface',
- 'title' => $context->msg( 'tooltip-rollback' )->text(),
- 'data-rollback-count' => (int)$editCount
+ 'title' => $context->msg( 'tooltip-rollback' )->text()
];
$options = [ 'known', 'noclasses' ];