From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/actions/RollbackAction.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'includes/actions/RollbackAction.php') diff --git a/includes/actions/RollbackAction.php b/includes/actions/RollbackAction.php index 9036ebf5..ebb34c78 100644 --- a/includes/actions/RollbackAction.php +++ b/includes/actions/RollbackAction.php @@ -17,13 +17,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * * @file - * @ingroup Action + * @ingroup Actions */ /** * User interface for the rollback action * - * @ingroup Action + * @ingroup Actions */ class RollbackAction extends FormlessAction { @@ -54,7 +54,7 @@ class RollbackAction extends FormlessAction { } if ( isset( $result[0][0] ) && ( $result[0][0] == 'alreadyrolled' || $result[0][0] == 'cantrollback' ) ) { - $this->getOutput()->setPageTitle( wfMsg( 'rollbackfailed' ) ); + $this->getOutput()->setPageTitle( $this->msg( 'rollbackfailed' ) ); $errArray = $result[0]; $errMsg = array_shift( $errArray ); $this->getOutput()->addWikiMsgArray( $errMsg, $errArray ); @@ -83,9 +83,7 @@ class RollbackAction extends FormlessAction { $out [] = $error; } } - $this->getOutput()->showPermissionsErrorPage( $out ); - - return; + throw new PermissionsError( 'rollback', $out ); } if ( $result == array( array( 'readonlytext' ) ) ) { @@ -95,7 +93,7 @@ class RollbackAction extends FormlessAction { $current = $details['current']; $target = $details['target']; $newId = $details['newid']; - $this->getOutput()->setPageTitle( wfMsg( 'actioncomplete' ) ); + $this->getOutput()->setPageTitle( $this->msg( 'actioncomplete' ) ); $this->getOutput()->setRobotPolicy( 'noindex,nofollow' ); if ( $current->getUserText() === '' ) { @@ -111,7 +109,7 @@ class RollbackAction extends FormlessAction { $this->getOutput()->returnToMain( false, $this->getTitle() ); if ( !$request->getBool( 'hidediff', false ) && !$this->getUser()->getBoolOption( 'norollbackdiff', false ) ) { - $de = new DifferenceEngine( $this->getTitle(), $current->getId(), $newId, false, true ); + $de = new DifferenceEngine( $this->getContext(), $current->getId(), $newId, false, true ); $de->showDiff( '', '' ); } } -- cgit v1.2.2