* @ingroup Actions
*/
+use MediaWiki\Storage\RevisionRecord;
+
/**
* User interface for the rollback action
*
}
/**
- * @throws ConfigException
* @throws ErrorPageError
* @throws ReadOnlyError
* @throws ThrottledError
*/
public function show() {
- /**
- * 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 ||
+ if ( $this->getUser()->getOption( 'showrollbackconfirmation' ) == false ||
$this->getRequest()->wasPosted() ) {
$this->handleRollbackRequest();
} else {
$this->getOutput()->addHTML(
$this->msg( 'rollback-success' )
->rawParams( $old, $new )
- ->params( $current->getUserText( Revision::FOR_THIS_USER, $user ) )
- ->params( $target->getUserText( Revision::FOR_THIS_USER, $user ) )
+ ->params( $current->getUserText( RevisionRecord::FOR_THIS_USER, $user ) )
+ ->params( $target->getUserText( RevisionRecord::FOR_THIS_USER, $user ) )
->parseAsBlock()
);