X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FparserTestsParserHook.php;h=339cadab0d10448cb6cb9e56442772d7d9d6dc81;hb=c771fc9c96aacb44b86ade5ecca68334c5d8213f;hp=ae50ee7f703e4913314d9e9c2bb09150bf8ea92c;hpb=9e0bc47685d0f06d33cf0b19c0648c0f94bf0c0d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php index ae50ee7f70..339cadab0d 100644 --- a/maintenance/parserTestsParserHook.php +++ b/maintenance/parserTestsParserHook.php @@ -1,25 +1,26 @@ * @copyright Copyright © 2005, 2006 Ævar Arnfjörð Bjarmason * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ -$wgHooks['ParserTestParser'][] = 'wfParserTestSetup'; +$wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup'; -function wfParserTestSetup( &$parser ) { - $parser->setHook( 'tag', 'wfParserTestHook' ); +function wfParserTestParserHookSetup( &$parser ) { + $parser->setHook( 'tag', 'wfParserTestParserHookHook' ); + + return true; } -function wfParserTestHook( $in, $argv ) { +function wfParserTestParserHookHook( $in, $argv ) { ob_start(); var_dump( $in, @@ -29,3 +30,4 @@ function wfParserTestHook( $in, $argv ) { return "
\n$ret
"; } +?>