patch by Laurent GUERBY to use/check copyright upload. Disabled by default.

This commit is contained in:
Antoine Musso 2004-06-24 13:26:08 +00:00
parent 6812cd0d7f
commit e137ce07a8
2 changed files with 11 additions and 2 deletions

View 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

View 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;
}
}