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/PurgeAction.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'includes/actions/PurgeAction.php') diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index 29cbf3ae..21a6d904 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -31,10 +31,6 @@ class PurgeAction extends FormAction { return 'purge'; } - public function getRestriction() { - return null; - } - public function requiresUnblock() { return false; } @@ -52,8 +48,7 @@ class PurgeAction extends FormAction { } public function onSubmit( $data ) { - $this->page->doPurge(); - return true; + return $this->page->doPurge(); } /** @@ -71,8 +66,9 @@ class PurgeAction extends FormAction { $this->getRequest()->getQueryValues(), array( 'title' => null, 'action' => null ) ) ); - $this->onSubmit( array() ); - $this->onSuccess(); + if( $this->onSubmit( array() ) ) { + $this->onSuccess(); + } } else { $this->redirectParams = $this->getRequest()->getVal( 'redirectparams', '' ); $form = $this->getForm(); -- cgit v1.2.3-54-g00ecf