__FILE__, 'name' => 'Gadgets', 'author' => array( 'Daniel Kinzler', 'Max Semenik' ), 'url' => 'https://www.mediawiki.org/wiki/Extension:Gadgets', 'descriptionmsg' => 'gadgets-desc', 'license-name' => 'GPL-2.0+', ); $wgHooks['ArticleSaveComplete'][] = 'GadgetHooks::articleSaveComplete'; $wgHooks['BeforePageDisplay'][] = 'GadgetHooks::beforePageDisplay'; $wgHooks['UserGetDefaultOptions'][] = 'GadgetHooks::userGetDefaultOptions'; $wgHooks['GetPreferences'][] = 'GadgetHooks::getPreferences'; $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 . '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'; $wgAutoloadClasses['SpecialGadgets'] = $dir . 'SpecialGadgets.php'; $wgSpecialPages['Gadgets'] = 'SpecialGadgets'; $wgSpecialPageGroups['Gadgets'] = 'wiki'; $wgAPIListModules['gadgetcategories'] = 'ApiQueryGadgetCategories'; $wgAPIListModules['gadgets'] = 'ApiQueryGadgets'; /** * Whether the gadget list should be cached or recomputed every time */ $wgGadgetsCaching = true;