X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/87219ebd28426c6d21cb545233ee52f5f7af7dfd..18a6620945d02687fbcfc4c27355d952fd748b41:/maintenance/parserTestsParserHook.php diff --git a/maintenance/parserTestsParserHook.php b/maintenance/parserTestsParserHook.php deleted file mode 100644 index f55cd0e4..00000000 --- a/maintenance/parserTestsParserHook.php +++ /dev/null @@ -1,34 +0,0 @@ - - * @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
"; -} -