From ed90bd3dff69b08609c09306a01178459fd8e3dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 16 Jul 2005 22:14:14 +0000 Subject: [PATCH] * Removed $wgCopyrightAffirmation support --- includes/DefaultSettings.php | 4 ---- includes/SpecialUpload.php | 39 +++--------------------------------- languages/Language.php | 3 --- 3 files changed, 3 insertions(+), 43 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 7c9de9c53e..23e1f6b508 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1117,10 +1117,6 @@ $wgRightsIcon = NULL; /** Set this to some HTML to override the rights icon with an arbitrary logo */ $wgCopyrightIcon = NULL; -/* Set this to true if you want the annoying copyright confirmation - * checkbox at Special:Upload */ -$wgCopyrightAffirmation = false; - /** Set this to true if you want detailed copyright information forms on Upload. */ $wgUseCopyrightUpload = false; diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index b88b098390..472a2bd5dd 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -28,7 +28,7 @@ class UploadForm { /**#@+ * @access private */ - var $mUploadAffirm, $mUploadFile, $mUploadDescription, $mIgnoreWarning; + var $mUploadFile, $mUploadDescription, $mIgnoreWarning; var $mUploadSaveName, $mUploadTempName, $mUploadSize, $mUploadOldVersion; var $mUploadCopyStatus, $mUploadSource, $mReUpload, $mAction, $mUpload; var $mOname, $mSessionKey, $mStashed, $mDestFile; @@ -47,7 +47,6 @@ class UploadForm { return; } - $this->mUploadAffirm = $request->getCheck( 'wpUploadAffirm' ); $this->mIgnoreWarning = $request->getCheck( 'wpIgnoreWarning'); $this->mReUpload = $request->getCheck( 'wpReUpload' ); $this->mUpload = $request->getCheck( 'wpUpload' ); @@ -133,7 +132,7 @@ class UploadForm { */ function processUpload() { global $wgUser, $wgOut, $wgLang, $wgContLang; - global $wgUploadDirectory, $wgCopyrightAffirmation; + global $wgUploadDirectory; global $wgUseCopyrightUpload, $wgCheckCopyrightUpload; /** @@ -143,27 +142,6 @@ class UploadForm { return $this->mainUploadForm('
  • '.wfMsg( 'emptyfile' ).'
  • '); } - if ( !$wgCopyrightAffirmation ) - $this->mUploadAffirm = true; - /** - * When using detailed copyright, if user filled field, assume he - * confirmed the upload - */ - if ( $wgUseCopyrightUpload ) { - $this->mUploadAffirm = true; - if( $wgCheckCopyrightUpload && - ( trim( $this->mUploadCopyStatus ) == '' || - trim( $this->mUploadSource ) == '' ) ) { - $this->mUploadAffirm = false; - } - } - - /** User need to confirm his upload */ - if( !$this->mUploadAffirm ) { - $this->mainUploadForm( wfMsg( 'noaffirmation' ) ); - return; - } - # Chop off any directories in the given filename if ( $this->mDestFile ) { $basename = basename( $this->mDestFile ); @@ -500,7 +478,6 @@ class UploadForm { $wgOut->addHTML( "
    - mSessionKey ) . "\" /> mUploadDescription ) . "\" /> @@ -533,7 +510,7 @@ class UploadForm { */ function mainUploadForm( $msg='' ) { global $wgOut, $wgUser, $wgLang, $wgUploadDirectory, $wgRequest; - global $wgUseCopyrightUpload, $wgCopyrightAffirmation; + global $wgUseCopyrightUpload; $cols = intval($wgUser->getOption( 'cols' )); $ew = $wgUser->getOption( 'editwidth' ); @@ -555,9 +532,6 @@ class UploadForm { $fd = wfMsg( 'filedesc' ); $ulb = wfMsg( 'uploadbtn' ); - $clink = $sk->makeKnownLink( wfMsgForContent( 'copyrightpage' ), - wfMsg( 'copyrightpagename' ) ); - $ca = wfMsg( 'affirmation', $clink ); $iw = wfMsg( 'ignorewarning' ); $titleObj = Title::makeTitle( NS_SPECIAL, 'Upload' ); @@ -566,13 +540,6 @@ class UploadForm { $encDestFile = htmlspecialchars( $this->mDestFile ); $source = null; - if ( $wgCopyrightAffirmation ) { - $source = " - - - - " ; - } if ( $wgUseCopyrightUpload ) { $source = " diff --git a/languages/Language.php b/languages/Language.php index b6607d1d36..a417e8b789 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1012,12 +1012,9 @@ To include the image in a page, use a link in the form 'filedesc' => 'Summary', 'filestatus' => 'Copyright status', 'filesource' => 'Source', -'affirmation' => "I affirm that the copyright holder of this file -agrees to license it under the terms of the $1.", 'copyrightpage' => "Project:Copyrights", 'copyrightpagename' => "{{SITENAME}} copyright", 'uploadedfiles' => 'Uploaded files', -'noaffirmation' => 'You must affirm that your upload does not violate any copyrights.', 'ignorewarning' => 'Ignore warning and save file anyway.', 'minlength' => 'File names must be at least three letters.', 'illegalfilename' => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.', -- 2.20.1