patch by Laurent GUERBY to use/check copyright upload. Disabled by default.
authorAntoine Musso <hashar@users.mediawiki.org>
Thu, 24 Jun 2004 13:26:08 +0000 (13:26 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Thu, 24 Jun 2004 13:26:08 +0000 (13:26 +0000)
includes/DefaultSettings.php
includes/SpecialUpload.php

index 7a2dbb0..6c244bf 100644 (file)
@@ -351,6 +351,14 @@ $wgRightsUrl = NULL;
 $wgRightsText = NULL;
 $wgRightsIcon = NULL;
 
+# Set this to true if you want detailed copyright information forms on Upload.
+$wgUseCopyrightUpload = false;
+
+# Set this to false if you want to disable checking that detailed 
+# copyright information values are not empty.
+$wgCheckCopyrightUpload = true;
+
+
 # Set this to false to avoid forcing the first letter of links
 # to capitals. WARNING: may break links! This makes links
 # COMPLETELY case-sensitive. Links appearing with a capital at
index ef70a19..3b37ba5 100644 (file)
@@ -73,13 +73,14 @@ class UploadForm {
                global $wgUser, $wgOut, $wgLang;
                global $wgUploadDirectory;
                global $wgSavedFile, $wgUploadOldVersion;
-               global $wgUseCopyrightUpload;
+               global $wgUseCopyrightUpload, $wgCheckCopyrightUpload;
                global $wgCheckFileExtensions, $wgStrictFileExtensions;
                global $wgFileExtensions, $wgFileBlacklist, $wgUploadSizeWarning;
 
                if ( $wgUseCopyrightUpload ) {
                        $this->mUploadAffirm = 1;
-                       if ( trim ( $this->mUploadCopyStatus ) == "" || trim ( $this->mUploadSource ) == "" ) {
+                       if ($wgCheckCopyrightUpload && 
+                               (trim ( $this->mUploadCopyStatus ) == "" || trim ( $this->mUploadSource ) == "" )) {
                                $this->mUploadAffirm = 0;
                        }
                }