* Add badsiglength to messages.inc
[lhc/web/wiklou.git] / maintenance / parserTestsParserHook.php
index ae50ee7..339cada 100644 (file)
@@ -1,25 +1,26 @@
 <?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
+ * @addtogroup 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,
@@ -29,3 +30,4 @@ function wfParserTestHook( $in, $argv ) {
 
        return "<pre>\n$ret</pre>";
 }
+?>