From e9255cdffac191281bc0cd981a1eb4103bc7838f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 16 Jun 2008 01:45:32 +0000 Subject: [PATCH] (bug 14551) - Cancel upload no longer automatically suppresses warnings. --- RELEASE-NOTES | 1 + includes/SpecialUpload.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index de005969ed..e0c467b92b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -371,6 +371,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 14511) MediaWiki:Delete-legend is no longer double escaped * Generate correct section anchors for numeric headers * (bug 14520) Don't load nonexistent CSS files for Chick/Myskin/Simple skins +* (bug 14551) Cancel upload no longer automatically suppresses warnings === API changes in 1.13 === diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index a77516c718..8365c72846 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -909,7 +909,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', '1' ) . "\n" . + Xml::hidden( 'wpIgnoreWarning', $this->mIgnoreWarning ) . "\n" . Xml::hidden( 'wpSessionKey', $this->mSessionKey ) . "\n" . Xml::hidden( 'wpUploadDescription', $this->mComment ) . "\n" . Xml::hidden( 'wpLicense', $this->mLicense ) . "\n" . -- 2.20.1