X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FPurgeAction.php;h=ed0bff7b9732b749a074cc95476e6cf1445d6399;hb=a3eb5b3a8cf2414964858797ada3551895484ade;hp=4c5171c9d0d86e1de8c0e49bcdeb1918cfc7251c;hpb=1c4587aabfc7e6d00171062214f5887f0e8d7ede;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index 4c5171c9d0..ed0bff7b97 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; @@ -66,7 +71,7 @@ class PurgeAction extends FormAction { $this->getRequest()->getQueryValues(), array( 'title' => null, 'action' => null ) ) ); - if( $this->onSubmit( array() ) ) { + if ( $this->onSubmit( array() ) ) { $this->onSuccess(); } } else { @@ -91,6 +96,6 @@ class PurgeAction extends FormAction { } public function onSuccess() { - $this->getOutput()->redirect( $this->getTitle()->getFullUrl( $this->redirectParams ) ); + $this->getOutput()->redirect( $this->getTitle()->getFullURL( $this->redirectParams ) ); } }