+ /**
+ * 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' );
+ }
+