From 183851b06bd6c52f3cae5375f433da720d410447 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 18:12:39 +0000 Subject: MediaWiki 1.7.1 wiederhergestellt --- maintenance/parserTestsParserHook.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 maintenance/parserTestsParserHook.php (limited to 'maintenance/parserTestsParserHook.php') diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php new file mode 100644 index 00000000..65e41aae --- /dev/null +++ b/maintenance/parserTestsParserHook.php @@ -0,0 +1,34 @@ + + * @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'][] = 'wfParserTestParserHookSetup'; + +function wfParserTestParserHookSetup( &$parser ) { + $parser->setHook( 'tag', 'wfParserTestParserHookHook' ); + + return true; +} + +function wfParserTestParserHookHook( $in, $argv ) { + ob_start(); + var_dump( + $in, + $argv + ); + $ret = ob_get_clean(); + + return "
\n$ret
"; +} +?> -- cgit v1.2.3-54-g00ecf