http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95745
Revision: 95745
Author: krinkle
Date: 2011-08-30 09:33:43 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Add config to enable/disable sharing functionality
Modified Paths:
--------------
branches/RL2/extensions/Gadgets/Gadgets.php
Modified: branches/RL2/extensions/Gadgets/Gadgets.php
===================================================================
--- branches/RL2/extensions/Gadgets/Gadgets.php 2011-08-30 09:23:22 UTC (rev
95744)
+++ branches/RL2/extensions/Gadgets/Gadgets.php 2011-08-30 09:33:43 UTC (rev
95745)
@@ -63,6 +63,14 @@
)
);
+/**
+ * Whether or not to allow gadgets to be shared in the gadget manager.
+ * Note that this does not make it impossible for someone to load a gadget
+ * from this wiki, it just removes the option from the interface for gadget
managers,
+ * and enforces the option when saving.
+ */
+$wgGadgetEnableSharing = true;
+
/*** Setup ***/
define( 'NS_GADGET', 2300 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs