summaryrefslogtreecommitdiff
path: root/maintenance/parserTestsParserHook.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
commit9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch)
tree46d1a0dee7febef5c2d57a9f7b972be16a163b3d /maintenance/parserTestsParserHook.php
parent78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff)
update to MediaWiki 1.17.0
Diffstat (limited to 'maintenance/parserTestsParserHook.php')
-rw-r--r--maintenance/parserTestsParserHook.php34
1 files changed, 0 insertions, 34 deletions
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 @@
-<?php
-if ( ! defined( 'MEDIAWIKI' ) )
- die( -1 );
-/**
- * A basic extension that's used by the parser tests to test whether input and
- * arguments are passed to extensions properly.
- *
- * @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'][] = '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 "<pre>\n$ret</pre>";
-}
-