* (bug 3340) $wgBlockCIDRLimit added (default: 16) to configure the low end of
CIDR ranges for blocking
* Added upload by default to $wgRestrictionTypes
+* $wgUseInstantCommons added for quick and easy enabling of Commons as a remote
+ file repository
=== New features in 1.16 ===
$wgForeignFileRepos = array();
/**@}*/
+/**
+ * Use Commons as a remote file repository. Essentially a wrapper, when this
+ * is enabled $wgForeignFileRepos will point at Commons with a set of default
+ * settings
+ */
+$wgUseInstantCommons = false;
+
/**
* Allowed title characters -- regex character class
* Don't change this unless you know what you're doing
);
}
}
+if( $wgUseInstantCommons ) {
+ $wgForeignFileRepos[] = array(
+ 'class' => 'ForeignAPIRepo',
+ 'name' => 'wikimediacommons',
+ 'apibase' => 'http://commons.wikimedia.org/w/api.php',
+ 'fetchDescription' => true,
+ 'descriptionCacheExpiry' => 43200,
+ 'apiThumbCacheExpiry' => 86400,
+ );
+}
+
+
if ( !class_exists( 'AutoLoader' ) ) {
require_once( "$IP/includes/AutoLoader.php" );
}