From: Ævar Arnfjörð Bjarmason Date: Sat, 26 Nov 2005 22:12:39 +0000 (+0000) Subject: * When called with action=purge just ->view() the article under that url rather X-Git-Tag: 1.6.0~1122 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=2da88bb7bb73a584d288e66160b7b58e56f8dd54;p=lhc%2Fweb%2Fwiklou.git * When called with action=purge just ->view() the article under that url rather than redirecting the user agent, i.e. work like action=view except do a purge --- diff --git a/includes/Article.php b/includes/Article.php index f4b5f75547..3025156104 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -940,8 +940,7 @@ class Article { $update = SquidUpdate::newSimplePurge( $this->mTitle ); $update->doUpdate(); } - // Redirect to the article - $wgOut->redirect( $this->mTitle->getFullURL() ); + $this->view(); } else { $msg = $wgOut->parse( wfMsg( 'confirm_purge' ) ); $action = $this->mTitle->escapeLocalURL( 'action=purge' );