* When called with action=purge just ->view() the article under that url rather
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 26 Nov 2005 22:12:39 +0000 (22:12 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 26 Nov 2005 22:12:39 +0000 (22:12 +0000)
  than redirecting the user agent, i.e. work like action=view except do a purge

includes/Article.php

index f4b5f75..3025156 100644 (file)
@@ -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' );