From 4a2c5f55716239d53cf6cd68d36ed4a058adf0d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 27 Feb 2006 04:04:44 +0000 Subject: [PATCH] * Renamed functions to make more sense * added ?> to the file --- maintenance/parserTestsParserHook.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php index 28ad8057a1..65e41aaee6 100644 --- a/maintenance/parserTestsParserHook.php +++ b/maintenance/parserTestsParserHook.php @@ -13,15 +13,15 @@ if ( ! defined( 'MEDIAWIKI' ) ) * @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, @@ -31,3 +31,4 @@ function wfParserTestHook( $in, $argv ) { return "
\n$ret
"; } +?> -- 2.20.1