Follow up to r81829. Poison var_dump, so that debug statements like r81671 can be...
authorPlatonides <platonides@users.mediawiki.org>
Wed, 9 Feb 2011 17:36:25 +0000 (17:36 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 9 Feb 2011 17:36:25 +0000 (17:36 +0000)
The three 'right' usages are
* includes/Import.php
* includes/api/ApiFormatDump.php
* tests/parser/parserTestsParserHook.php

tests/parser/parserTestsParserHook.php

index 936d061..324b8e5 100644 (file)
 class ParserTestParserHook {
 
        static function setup( &$parser ) {
-               $parser->setHook( 'tag', array( __CLASS__, 'hook' ) );
+               $parser->setHook( 'tag', array( __CLASS__, 'dumpHook' ) );
 
                return true;
        }
 
-       static function hook( $in, $argv ) {
+       static function dumpHook( $in, $argv ) {
                ob_start();
                var_dump(
                        $in,