r95745 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95744‎ | r95745 | r95746 >
Date:09:33, 30 August 2011
Author:krinkle
Status:ok
Tags:
Comment:
Add config to enable/disable sharing functionality
Modified paths:
  • /branches/RL2/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/Gadgets.php
@@ -63,6 +63,14 @@
6464 )
6565 );
6666
 67+/**
 68+ * Whether or not to allow gadgets to be shared in the gadget manager.
 69+ * Note that this does not make it impossible for someone to load a gadget
 70+ * from this wiki, it just removes the option from the interface for gadget managers,
 71+ * and enforces the option when saving.
 72+ */
 73+$wgGadgetEnableSharing = true;
 74+
6775 /*** Setup ***/
6876
6977 define( 'NS_GADGET', 2300 );

Status & tagging log