diff options
Diffstat (limited to 'includes/actions/PurgeAction.php')
-rw-r--r-- | includes/actions/PurgeAction.php | 12 |
1 files changed, 4 insertions, 8 deletions
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(); |