fixed bugs added recently
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:35:45 +0000 (12:35 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 1 Apr 2004 12:35:45 +0000 (12:35 +0000)
includes/Article.php

index 3bd0b2c..a04ec9b 100644 (file)
@@ -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" ) );