mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
Revert "Add $wgGadgetsEnableLegacyGadgets to allow disabling of legacy gadgets"
This reverts commit 036aa3d876
.
Change-Id: I90840cbdaa1d6eabde3fffd113dc7a945a876e77
This commit is contained in:
parent
036aa3d876
commit
a51bb552dc
|
@ -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();
|
||||
|
|
|
@ -56,8 +56,7 @@
|
|||
},
|
||||
"config": {
|
||||
"GadgetsCaching": true,
|
||||
"GadgetsCacheType": false,
|
||||
"GadgetsEnableLegacyGadgets": true
|
||||
"GadgetsCacheType": false
|
||||
},
|
||||
"manifest_version": 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue