{
global $wgUser, $wgOut, $wgMessageCache, $wgRequest;
$fname = "Article::delete";
- $confirm = $wgRequest->getBool( 'wpConfirm' ) && $wgRequest->isPosted();
+ $confirm = $wgRequest->getBool( 'wpConfirm' ) && $wgRequest->wasPosted();
$reason = $wgRequest->getText( 'wpReason' );
# This code desperately needs to be totally rewritten
$fname = "Article::doDelete";
wfDebug( "$fname\n" );
- if ( $this->doDeleteArticle() ) {
+ if ( $this->doDeleteArticle( $reason ) ) {
$deleted = $this->mTitle->getPrefixedText();
$wgOut->setPagetitle( wfMsg( "actioncomplete" ) );