From: Tim Starling Date: Fri, 2 Dec 2005 04:29:57 +0000 (+0000) Subject: Fixed extension function parameter passing X-Git-Tag: 1.6.0~1069 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=1ce5518c0b4bf749d2438ac73bea6a7fb88f170d;p=lhc%2Fweb%2Fwiklou.git Fixed extension function parameter passing --- diff --git a/includes/Parser.php b/includes/Parser.php index 7760860ac2..b61449bff5 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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