X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FRollbackAction.php;h=040485637d18b70415753c94deccc117de2f152e;hb=346be21e9352ac35f207dc94bc940d04e1498933;hp=93669cf4ab675c1d13d4316f8643b1af57345451;hpb=88791ec8806c7a3b4d9da66eca3f565f1609b3e1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php index 93669cf4ab..040485637d 100644 --- a/includes/actions/RollbackAction.php +++ b/includes/actions/RollbackAction.php @@ -78,13 +78,13 @@ class RollbackAction extends FormlessAction { return; } - #NOTE: Permission errors already handled by Action::checkExecute. + # NOTE: Permission errors already handled by Action::checkExecute. if ( $result == array( array( 'readonlytext' ) ) ) { throw new ReadOnlyError; } - #XXX: Would be nice if ErrorPageError could take multiple errors, and/or a status object. + # XXX: Would be nice if ErrorPageError could take multiple errors, and/or a status object. # Right now, we only show the first error foreach ( $result as $error ) { throw new ErrorPageError( 'rollbackfailed', $error[0], array_slice( $error, 1 ) ); @@ -109,7 +109,7 @@ class RollbackAction extends FormlessAction { $this->getOutput()->returnToMain( false, $this->getTitle() ); if ( !$request->getBool( 'hidediff', false ) && - !$this->getUser()->getBoolOption( 'norollbackdiff', false ) + !$this->getUser()->getBoolOption( 'norollbackdiff' ) ) { $contentHandler = $current->getContentHandler(); $de = $contentHandler->createDifferenceEngine(