"Show preview" and "Show changes"
* Special:Statistics now supports action=raw, useful for bots designed to
harwest e.g. article counts from multiple wikis.
+* The copyright confirmation box at Special:Upload can now be turned off by setting
+ $wgCopyrightAffirmation to a false value in LocalSettings.php
=== Caveats ===
/** Set this to some HTML to override the rights icon with an arbitrary logo */
$wgCopyrightIcon = NULL;
+/* Set this to false if you want to get rid of the copyright confirmation
+ * checkbox at Special:Upload */
+$wgCopyrightAffirmation = true;
+
/** Set this to true if you want detailed copyright information forms on Upload. */
$wgUseCopyrightUpload = false;
*/
function processUpload() {
global $wgUser, $wgOut, $wgLang, $wgContLang;
- global $wgUploadDirectory;
+ global $wgUploadDirectory, $wgCopyrightAffirmation;
global $wgUseCopyrightUpload, $wgCheckCopyrightUpload;
/**
if( trim( $this->mOname ) == '' || empty( $this->mUploadSize ) ) {
return $this->mainUploadForm('<li>'.wfMsg( 'emptyfile' ).'</li>');
}
-
+
+ if ( !$wgCopyrightAffirmation )
+ $this->mUploadAffirm = true;
/**
* When using detailed copyright, if user filled field, assume he
* confirmed the upload
*/
function mainUploadForm( $msg='' ) {
global $wgOut, $wgUser, $wgLang, $wgUploadDirectory, $wgRequest;
- global $wgUseCopyrightUpload;
+ global $wgUseCopyrightUpload, $wgCopyrightAffirmation;
$cols = intval($wgUser->getOption( 'cols' ));
$ew = $wgUser->getOption( 'editwidth' );
$action = $titleObj->escapeLocalURL();
$encDestFile = htmlspecialchars( $this->mDestFile );
+ $source = null;
+ if ( $wgCopyrightAffirmation ) {
$source = "
<td align='right'>
<input tabindex='3' type='checkbox' name='wpUploadAffirm' value='1' id='wpUploadAffirm' />
</td><td align='left'><label for='wpUploadAffirm'>{$ca}</label></td>
" ;
+ }
if ( $wgUseCopyrightUpload )
{
$source = "