Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -28,13 +28,15 @@ |
29 | 29 | |
30 | 30 | function sfgParserFunctions () { |
31 | 31 | global $wgParser; |
32 | | - $wgParser->setFunctionHook('sf_forminput', 'renderFormInput'); |
| 32 | + $wgParser->setFunctionHook('forminput', 'renderFormInput'); |
33 | 33 | } |
34 | 34 | |
35 | 35 | function sfgLanguageGetMagic( &$magicWords, $langCode = "en" ) { |
36 | 36 | switch ( $langCode ) { |
37 | 37 | 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' ); |
39 | 41 | } |
40 | 42 | return true; |
41 | 43 | } |