Index: trunk/extensions/StringFunctions/StringFunctions_body.php |
— | — | @@ -343,14 +343,6 @@ |
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
347 | | - * {{#urlencode:value}} |
348 | | - */ |
349 | | - static function runUrlEncode( &$parser, $inStr = '' ) { |
350 | | - # encode |
351 | | - return urlencode( $inStr ); |
352 | | - } |
353 | | - |
354 | | - /** |
355 | 347 | * {{#urldecode:value}} |
356 | 348 | */ |
357 | 349 | static function runUrlDecode( &$parser, $inStr = '' ) { |
Index: trunk/extensions/StringFunctions/StringFunctions.php |
— | — | @@ -110,6 +110,7 @@ |
111 | 111 | ); |
112 | 112 | |
113 | 113 | $dir = dirname( __FILE__ ) . '/'; |
| 114 | +$wgParserTestFiles[] = $dir . "/strFunctionsParserTests.txt"; |
114 | 115 | $wgExtensionMessagesFiles['StringFunctions'] = $dir . 'StringFunctions.i18n.php'; |
115 | 116 | $wgAutoloadClasses['ExtStringFunctions'] = $dir . 'StringFunctions_body.php'; |
116 | 117 | |
— | — | @@ -129,7 +130,6 @@ |
130 | 131 | $parser->setFunctionHook( 'pad', array( 'ExtStringFunctions', 'runPad' ) ); |
131 | 132 | $parser->setFunctionHook( 'replace', array( 'ExtStringFunctions', 'runReplace' ) ); |
132 | 133 | $parser->setFunctionHook( 'explode', array( 'ExtStringFunctions', 'runExplode' ) ); |
133 | | - $parser->setFunctionHook( 'urlencode', array( 'ExtStringFunctions', 'runUrlEncode' ) ); |
134 | 134 | $parser->setFunctionHook( 'urldecode', array( 'ExtStringFunctions', 'runUrlDecode' ) ); |
135 | 135 | |
136 | 136 | return true; |
— | — | @@ -145,7 +145,6 @@ |
146 | 146 | $magicWords['pad'] = array( 0, 'pad' ); |
147 | 147 | $magicWords['replace'] = array( 0, 'replace' ); |
148 | 148 | $magicWords['explode'] = array( 0, 'explode' ); |
149 | | - $magicWords['urlencode'] = array( 0, 'urlencode' ); |
150 | 149 | $magicWords['urldecode'] = array( 0, 'urldecode' ); |
151 | 150 | } |
152 | 151 | return true; |