r25171 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25170‎ | r25171 | r25172 >
Date:21:21, 26 August 2007
Author:yaron
Status:old
Tags:
Comment:
'sf_forminput' renamed to just 'forminput'
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -28,13 +28,15 @@
2929
3030 function sfgParserFunctions () {
3131 global $wgParser;
32 - $wgParser->setFunctionHook('sf_forminput', 'renderFormInput');
 32+ $wgParser->setFunctionHook('forminput', 'renderFormInput');
3333 }
3434
3535 function sfgLanguageGetMagic( &$magicWords, $langCode = "en" ) {
3636 switch ( $langCode ) {
3737 default:
38 - $magicWords['sf_forminput'] = array ( 0, 'sf_forminput' );
 38+ $magicWords['forminput'] = array ( 0, 'forminput' );
 39+ // for backward compatibility
 40+ $magicWords['forminput'] = array ( 0, 'sf_forminput' );
3941 }
4042 return true;
4143 }

Status & tagging log