Revert "Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets"

This reverts commit 036aa3d876.

Change-Id: I90840cbdaa1d6eabde3fffd113dc7a945a876e77
This commit is contained in:
Alex Monk 2015-07-18 07:44:31 +00:00
parent 036aa3d876
commit a51bb552dc
2 changed files with 3 additions and 9 deletions

View file

@ -162,8 +162,6 @@ class GadgetHooks {
* @return bool
*/
public static function beforePageDisplay( $out ) {
global $wgGadgetsEnableLegacyGadgets;
$gadgets = Gadget::loadList();
if ( !$gadgets ) {
return true;
@ -191,11 +189,8 @@ class GadgetHooks {
}
}
// Check if legacy gadgets are even enabled
if ( $wgGadgetsEnableLegacyGadgets &&
// Allow other extensions, e.g. MobileFrontend, to disallow legacy gadgets
Hooks::run( 'Gadgets::allowLegacy', array( $out->getContext() ) )
) {
// Allow other extensions, e.g. MobileFrontend, to disallow legacy gadgets
if ( Hooks::run( 'Gadgets::allowLegacy', array( $out->getContext() ) ) ) {
$lb->execute( __METHOD__ );
$done = array();

View file

@ -56,8 +56,7 @@
},
"config": {
"GadgetsCaching": true,
"GadgetsCacheType": false,
"GadgetsEnableLegacyGadgets": true
"GadgetsCacheType": false
},
"manifest_version": 1
}