From 8c9845b014ca48dda8d50030c0dca381cbc0b100 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 19 Jan 2010 15:23:59 +0000 Subject: [PATCH] Pass parser by reference on line 3344 for bug 22154 extension broken (line 3351 passes by reference --- includes/parser/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 0e2a5f88ee..96a49eaa29 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3341,7 +3341,7 @@ class Parser throw new MWException( "Tag hook for $name is not callable\n" ); } $output = call_user_func_array( $this->mTagHooks[$name], - array( $content, $attributes, $this, $frame ) ); + array( $content, $attributes, &$this, $frame ) ); } elseif( isset( $this->mFunctionTagHooks[$name] ) ) { list( $callback, $flags ) = $this->mFunctionTagHooks[$name]; if( !is_callable( $callback ) ) -- 2.20.1