From 2dda8ddbbfc38dae7ee74744c28fcda0cae4c282 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 26 Nov 2005 23:06:19 +0000 Subject: [PATCH] * Changed the names of the functions so that they don't conflict with the Parser_hook.php extension --- maintenance/parserTestsParserHook.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php index cb15614566..396bb7d4e9 100644 --- a/maintenance/parserTestsParserHook.php +++ b/maintenance/parserTestsParserHook.php @@ -11,13 +11,13 @@ if (!defined('MEDIAWIKI')) die(); * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ -$wgHooks['ParserTestParser'][] = 'wfParserSetup'; +$wgHooks['ParserTestParser'][] = 'wfParserTestSetup'; -function wfParserSetup( &$parser ) { - $parser->setHook( 'tag', 'wfParserHook' ); +function wfParserTestSetup( &$parser ) { + $parser->setHook( 'tag', 'wfParserTestHook' ); } -function wfParserHook( $in, $argv ) { +function wfParserTestHook( $in, $argv ) { if ( count( $argv ) ) return "
\n" . print_r( $argv, true ) . '
'; else -- 2.20.1