diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /extensions/Gadgets/Gadgets.php | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'extensions/Gadgets/Gadgets.php')
-rw-r--r-- | extensions/Gadgets/Gadgets.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/extensions/Gadgets/Gadgets.php b/extensions/Gadgets/Gadgets.php index b0b455c4..de0b46c2 100644 --- a/extensions/Gadgets/Gadgets.php +++ b/extensions/Gadgets/Gadgets.php @@ -36,11 +36,12 @@ $wgHooks['ResourceLoaderRegisterModules'][] = 'GadgetHooks::registerModules'; $wgHooks['UnitTestsList'][] = 'GadgetHooks::onUnitTestsList'; $dir = dirname( __FILE__ ) . '/'; +$wgMessagesDirs['Gadgets'] = __DIR__ . '/i18n'; $wgExtensionMessagesFiles['Gadgets'] = $dir . 'Gadgets.i18n.php'; $wgExtensionMessagesFiles['GadgetsAlias'] = $dir . 'Gadgets.alias.php'; -$wgAutoloadClasses['ApiQueryGadgetCategories'] = $dir . 'ApiQueryGadgetCategories.php'; -$wgAutoloadClasses['ApiQueryGadgets'] = $dir . 'ApiQueryGadgets.php'; +$wgAutoloadClasses['ApiQueryGadgetCategories'] = $dir . 'api/ApiQueryGadgetCategories.php'; +$wgAutoloadClasses['ApiQueryGadgets'] = $dir . 'api/ApiQueryGadgets.php'; $wgAutoloadClasses['Gadget'] = $dir . 'Gadgets_body.php'; $wgAutoloadClasses['GadgetHooks'] = $dir . 'GadgetHooks.php'; $wgAutoloadClasses['GadgetResourceLoaderModule'] = $dir . 'Gadgets_body.php'; @@ -51,3 +52,8 @@ $wgSpecialPageGroups['Gadgets'] = 'wiki'; $wgAPIListModules['gadgetcategories'] = 'ApiQueryGadgetCategories'; $wgAPIListModules['gadgets'] = 'ApiQueryGadgets'; + +/** + * Whether the gadget list should be cached or recomputed every time + */ +$wgGadgetsCaching = true; |