From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/actions/PurgeAction.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'includes/actions/PurgeAction.php') diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index cd58889d..00bb961d 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -1,8 +1,6 @@ . + * User-requested page cache purging. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,9 +18,16 @@ * * @file * @ingroup Actions - * @author */ +/** + * User-requested page cache purging. + * + * For users with 'purge', this will directly trigger the cache purging and + * for users without that right, it will show a confirmation form. + * + * @ingroup Actions + */ class PurgeAction extends FormAction { private $redirectParams; @@ -62,7 +67,7 @@ class PurgeAction extends FormAction { $this->checkCanExecute( $this->getUser() ); if ( $this->getUser()->isAllowed( 'purge' ) ) { - $this->redirectParams = wfArrayToCGI( array_diff_key( + $this->redirectParams = wfArrayToCgi( array_diff_key( $this->getRequest()->getQueryValues(), array( 'title' => null, 'action' => null ) ) ); -- cgit v1.2.2