Fixed extension function parameter passing
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 2 Dec 2005 04:29:57 +0000 (04:29 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 2 Dec 2005 04:29:57 +0000 (04:29 +0000)
includes/Parser.php

index 7760860..b61449b 100644 (file)
@@ -435,7 +435,7 @@ class Parser
                                $full_tag = $ext_tags[$tag][$marker];
                                $params = $ext_params[$tag][$marker];
                                if ( $render )
-                                       $ext_content[$tag][$marker] = call_user_func_array( $callback, array( $content, $params, $this ) );
+                                       $ext_content[$tag][$marker] = call_user_func_array( $callback, array( $content, $params, &$this ) );
                                else {
                                        if ( is_null( $content ) ) {
                                                // Empty element tag