}
/**
+ * @throws ConfigException
* @throws ErrorPageError
* @throws ReadOnlyError
* @throws ThrottledError
*/
public function show() {
- if ( $this->getUser()->getOption( 'showrollbackconfirmation' ) == false ||
+ /**
+ * FIXME
+ * Remove temporary check of DisableRollbackConfirmationFeature
+ * after release of rollback feature. See T199534
+ */
+ $config = \MediaWiki\MediaWikiServices::getInstance()->getMainConfig();
+ if ( $config->get( 'DisableRollbackConfirmationFeature' ) == true ||
+ $this->getUser()->getOption( 'showrollbackconfirmation' ) == false ||
$this->getRequest()->wasPosted() ) {
$this->handleRollbackRequest();
} else {