r90428 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90427‎ | r90428 | r90429 >
Date:04:02, 20 June 2011
Author:yaron
Status:deferred
Tags:
Comment:
Renamed sfgSetupExtension() to sffSetupExtension() - more-correct syntax
Modified paths:
  • /trunk/extensions/SemanticForms/SemanticForms.php (modified) (history)
  • /trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/SemanticForms.php
@@ -72,7 +72,7 @@
7373 define( 'SF_SP_PAGE_HAS_DEFAULT_FORM', 4 );
7474 define( 'SF_SP_HAS_FIELD_LABEL_FORMAT', 5 );
7575
76 -$wgExtensionFunctions[] = 'sfgSetupExtension';
 76+$wgExtensionFunctions[] = 'sffSetupExtension';
7777
7878 // FIXME: Can be removed when new style magic words are used (introduced in r52503)
7979 $wgHooks['LanguageGetMagic'][] = 'SFParserFunctions::languageGetMagic';
Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php
@@ -13,7 +13,7 @@
1414 * This is a delayed init that makes sure that MediaWiki is set up
1515 * properly before we add our stuff.
1616 */
17 -function sfgSetupExtension() {
 17+function sffSetupExtension() {
1818 // This global variable is needed so that other extensions can hook
1919 // into it to add their own input types.
2020 global $sfgFormPrinter;