From 2da88bb7bb73a584d288e66160b7b58e56f8dd54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 26 Nov 2005 22:12:39 +0000 Subject: [PATCH] * 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 --- includes/Article.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' ); -- 2.20.1