From: Tim Starling Date: Thu, 21 Jun 2007 20:44:47 +0000 (+0000) Subject: Pass through wpIgnoreWarning request parameter to the form. X-Git-Tag: 1.31.0-rc.0~52466 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=b8a3b9503b2a0957f9a856519c2c50fc98978944;p=lhc%2Fweb%2Fwiklou.git Pass through wpIgnoreWarning request parameter to the form. --- 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 - +