r75199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75198‎ | r75199 | r75200 >
Date:16:13, 22 October 2010
Author:yaron
Status:deferred
Tags:
Comment:
Added two more hook calls, for better handling of Javascript, including support for ResourceLoader
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php
@@ -34,14 +34,15 @@
3535 $wgHooks['BrokenLink'][] = 'SFLinkUtils::setBrokenLink_1_13';
3636 $wgHooks['LinkEnd'][] = 'SFLinkUtils::setBrokenLink';
3737 $wgHooks['UnknownAction'][] = 'SFFormEditTab::displayForm';
38 -// 'SkinTemplateNavigation' replaced 'SkinTemplateTabs' in the 'Vector' skin
39 -// for MediaWiki v1.16
 38+// 'SkinTemplateNavigation' replaced 'SkinTemplateTabs' in the Vector skin
4039 $wgHooks['SkinTemplateTabs'][] = 'SFFormEditTab::displayTab';
4140 $wgHooks['SkinTemplateNavigation'][] = 'SFFormEditTab::displayTab2';
4241 $wgHooks['smwInitProperties'][] = 'SFUtils::initProperties';
4342 $wgHooks['AdminLinks'][] = 'sffAddToAdminLinks';
4443 $wgHooks['ParserBeforeStrip'][] = 'SFUtils::cacheFormDefinition';
4544 $wgHooks['ParserFirstCallInit'][] = 'SFParserFunctions::registerFunctions';
 45+$wgHooks['ResourceLoaderRegisterModules'][] = 'SFUtils::registerModules';
 46+$wgHooks['MakeGlobalVariablesScript'][] = 'SFFormUtils::setGlobalJSVariables';
4647
4748 $wgAPIModules['sfautocomplete'] = 'SFAutocompleteAPI';
4849

Status & tagging log