/**
* Handle action=purge
+ * @param bool $showPage Show the page after purging?
*/
- function purge() {
+ function purge( $showPage = true ) {
global $wgUser, $wgRequest, $wgOut;
if ( $wgUser->isAllowed( 'purge' ) || $wgRequest->wasPosted() ) {
$wgOut->setRobotPolicy( 'noindex,nofollow' );
$wgOut->addHTML( $msg );
}
+ // Show the page post-purge? 99.99% of the time yes, but sometimes no.
+ if ( $showPage ) {
+ $this->view();
+ }
}
/**
}
$wgMessageCache->replace( $this->mTitle->getDBkey(), $text );
}
- $this->view();
}
/**