// This is the default in InitialiseSettings.php and triggers special
// behavior in WikimediaMessagesHooks::onSkinCopyrightFooter.
$wgRightsUrl = '//creativecommons.org/licenses/by-sa/3.0/';

// These are also defaults in InitialiseSettings.php.
$wgRightsText = 'Creative Commons Attribution-Share Alike 3.0';
$wgRightsIcon = '//creativecommons.org/images/public/somerights20.png';

//<?php
// This is the default in InitialiseSettings.php and triggers special
// behavior in WikimediaMessagesHooks::onSkinCopyrightFooter.
$wgRightsUrl = '//creativecommons.org/licenses/by-sa/3.0/';

// These are also defaults in InitialiseSettings.php.
$wgRightsText = 'Creative Commons Attribution-Share Alike 3.0';
$wgRightsIcon = '//creativecommons.org/images/public/somerights20.png';

// Remove an annoying hook which would prevent upload when MediaWiki::Licenses
// does not exist, making testing more cumbersome.
$wgExtensionFunctions[] = function() {
	global $wgHooks;
	$index = array_search( 'WikimediaMessagesHooks::onUploadFormInitial', $wgHooks['UploadForm:initial'], true );
	if ( $index !== false ) {
		unset( $wgHooks['UploadForm:initial'][$index] );
	}
};

Enable uploads without a license page
Enable uploads without a license page

WikimediaMessages (pulled in by serveral roles) disables file uploads when
MediaWiki:Licenses does not exist, which is an extra annoyance when testing
media-related functionality.

Change-Id: Ifa28e355fe7d5a6531495631142eba1ca4a6cf04
