<?php
if ( ! defined( 'MEDIAWIKI' ) )
- die();
+ die( -1 );
/**
* A basic extension that's used by the parser tests to test whether input and
* arguments are passed to extensions properly.
*
- * @package MediaWiki
- * @subpackage Maintenance
+ * @file
+ * @ingroup Maintenance
*
* @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
* @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'][] = 'wfParserTestSetup';
+$wgHooks['ParserTestParser'][] = 'wfParserTestParserHookSetup';
-function wfParserTestSetup( &$parser ) {
- $parser->setHook( 'tag', 'wfParserTestHook' );
+function wfParserTestParserHookSetup( &$parser ) {
+ $parser->setHook( 'tag', 'wfParserTestParserHookHook' );
+
+ return true;
}
-function wfParserTestHook( $in, $argv ) {
+function wfParserTestParserHookHook( $in, $argv ) {
ob_start();
var_dump(
$in,
return "<pre>\n$ret</pre>";
}
+