r11802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11801‎ | r11802 | r11803 >
Date:22:12, 26 November 2005
Author:avar
Status:old
Tags:
Comment:
* 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
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -940,8 +940,7 @@
941941 $update = SquidUpdate::newSimplePurge( $this->mTitle );
942942 $update->doUpdate();
943943 }
944 - // Redirect to the article
945 - $wgOut->redirect( $this->mTitle->getFullURL() );
 944+ $this->view();
946945 } else {
947946 $msg = $wgOut->parse( wfMsg( 'confirm_purge' ) );
948947 $action = $this->mTitle->escapeLocalURL( 'action=purge' );

Status & tagging log