From: Ævar Arnfjörð Bjarmason Date: Sat, 26 Nov 2005 23:06:19 +0000 (+0000) Subject: * Changed the names of the functions so that they don't conflict with the X-Git-Tag: 1.6.0~1116 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=2dda8ddbbfc38dae7ee74744c28fcda0cae4c282;p=lhc%2Fweb%2Fwiklou.git * Changed the names of the functions so that they don't conflict with the Parser_hook.php extension --- 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