From b8a3b9503b2a0957f9a856519c2c50fc98978944 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 21 Jun 2007 20:44:47 +0000 Subject: [PATCH] Pass through wpIgnoreWarning request parameter to the form. --- includes/SpecialUpload.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 36ad4a8b53..112e4ec042 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -45,6 +45,7 @@ class UploadForm { function UploadForm( &$request ) { global $wgAllowCopyUploads; $this->mDesiredDestName = $request->getText( 'wpDestFile' ); + $this->mIgnoreWarning = $request->getCheck( 'wpIgnoreWarning' ); if( !$request->wasPosted() ) { # GET requests just give the main form; no data except wpDestfile. @@ -55,7 +56,6 @@ class UploadForm { $this->uploadFormTextTop = ""; $this->uploadFormTextAfterSummary = ""; - $this->mIgnoreWarning = $request->getCheck( 'wpIgnoreWarning' ); $this->mReUpload = $request->getCheck( 'wpReUpload' ); $this->mUploadClicked = $request->getCheck( 'wpUpload' ); @@ -742,6 +742,7 @@ class UploadForm { ( $wgUser->getOption( 'watchcreations' ) && $this->mDesiredDestName == '' ) ) ? 'checked="checked"' : ''; + $warningChecked = $this->mIgnoreWarning ? 'checked' : ''; // Prepare form for upload or upload/copy if( $wgAllowCopyUploads && $wgUser->isAllowed( 'upload_by_url' ) ) { @@ -842,7 +843,7 @@ EOT - + -- 2.20.1