Fixing it the way RockMFR said I should.
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Jun 2008 02:26:40 +0000 (02:26 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 16 Jun 2008 02:26:40 +0000 (02:26 +0000)
includes/SpecialUpload.php

index 8365c72..0f37f50 100644 (file)
@@ -259,6 +259,9 @@ class UploadForm {
                        if( !$this->unsaveUploadedFile() ) {
                                return;
                        }
+                       # Because it is probably checked and shouldn't be
+                       $this->mIgnoreWarning = false;
+                       
                        $this->mainUploadForm();
                } else if( 'submit' == $this->mAction || $this->mUploadClicked ) {
                        $this->processUpload();
@@ -909,7 +912,7 @@ class UploadForm {
                $wgOut->addHTML(
                        Xml::openElement( 'form', array( 'method' => 'post', 'action' => $titleObj->getLocalURL( 'action=submit' ),
                                 'enctype' => 'multipart/form-data', 'id' => 'uploadwarning' ) ) . "\n" .
-                       Xml::hidden( 'wpIgnoreWarning', $this->mIgnoreWarning ) . "\n" .
+                       Xml::hidden( 'wpIgnoreWarning', '1' ) . "\n" .
                        Xml::hidden( 'wpSessionKey', $this->mSessionKey ) . "\n" .
                        Xml::hidden( 'wpUploadDescription', $this->mComment ) . "\n" .
                        Xml::hidden( 'wpLicense', $this->mLicense ) . "\n" .