extra $this parameter for parser extension functions
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 1 Aug 2005 16:15:38 +0000 (16:15 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 1 Aug 2005 16:15:38 +0000 (16:15 +0000)
includes/Parser.php

index f7d32f5..46e0bb5 100644 (file)
@@ -428,7 +428,7 @@ class Parser
                                $full_tag = $ext_tags[$tag][$marker];
                                $params = $ext_params[$tag][$marker];
                                if ( $render ) {
-                                       $ext_content[$tag][$marker] = $callback( $content, $params );
+                                       $ext_content[$tag][$marker] = $callback( $content, $params, $this );
                                } else {
                                        $ext_content[$tag][$marker] = "$full_tag$content</$tag>";
                                }