__FILE__, 'name' => 'Gadgets', 'author' => array( 'Daniel Kinzler', 'Max Semenik' ), 'url' => 'http://mediawiki.org/wiki/Extension:Gadgets', 'descriptionmsg' => 'gadgets-desc', ); $wgHooks['ArticleSaveComplete'][] = 'GadgetHooks::articleSaveComplete'; $wgHooks['BeforePageDisplay'][] = 'GadgetHooks::beforePageDisplay'; $wgHooks['GetPreferences'][] = 'GadgetHooks::getPreferences'; $wgHooks['ResourceLoaderRegisterModules'][] = 'GadgetHooks::registerModules'; $wgHooks['UnitTestsList'][] = 'GadgetHooks::unitTestsList'; $dir = dirname(__FILE__) . '/'; $wgExtensionMessagesFiles['Gadgets'] = $dir . 'Gadgets.i18n.php'; $wgExtensionAliasesFiles['Gadgets'] = $dir . 'Gadgets.alias.php'; $wgAutoloadClasses['ApiQueryGadgets'] = $dir . 'ApiQueryGadgets.php'; $wgAutoloadClasses['Gadget'] = $dir . 'Gadgets_body.php'; $wgAutoloadClasses['GadgetHooks'] = $dir . 'Gadgets_body.php'; $wgAutoloadClasses['GadgetResourceLoaderModule'] = $dir . 'Gadgets_body.php'; $wgAutoloadClasses['SpecialGadgets'] = $dir . 'SpecialGadgets.php'; $wgSpecialPages['Gadgets'] = 'SpecialGadgets'; $wgSpecialPageGroups['Gadgets'] = 'wiki'; $wgAPIListModules['gadgets'] = 'ApiQueryGadgets';