From: Tim Starling Date: Thu, 1 Apr 2004 12:35:45 +0000 (+0000) Subject: fixed bugs added recently X-Git-Tag: 1.3.0beta1~661 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=be9ef591e2e3d927fab870799cd1c007264d8cdb;p=lhc%2Fweb%2Fwiklou.git fixed bugs added recently --- diff --git a/includes/Article.php b/includes/Article.php index 3bd0b2c60c..a04ec9beb4 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -752,7 +752,7 @@ class Article { { 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 @@ -884,7 +884,7 @@ class Article { $fname = "Article::doDelete"; wfDebug( "$fname\n" ); - if ( $this->doDeleteArticle() ) { + if ( $this->doDeleteArticle( $reason ) ) { $deleted = $this->mTitle->getPrefixedText(); $wgOut->setPagetitle( wfMsg( "actioncomplete" ) );