From: Ryan Schmidt Date: Sat, 10 May 2008 18:31:05 +0000 (+0000) Subject: Fix for bug 13677 X-Git-Tag: 1.31.0-rc.0~47726 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=cc9f5a5a94492b164fa386789054dc5162481c33;p=lhc%2Fweb%2Fwiklou.git Fix for bug 13677 --- diff --git a/includes/Parser.php b/includes/Parser.php index 8f77ecf833..9a73ee761f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2835,7 +2835,9 @@ class Parser } $result = call_user_func_array( $callback, $allArgs ); $found = true; - + $noparse = true; + $preprocessFlags = 0; + if ( is_array( $result ) ) { if ( isset( $result[0] ) ) { $text = $result[0]; @@ -2848,6 +2850,10 @@ class Parser } else { $text = $result; } + if ( !$noparse ) { + $text = $this->preprocessToDom( $text, $preprocessFlags ); + $isChildObj = true; + } } } wfProfileOut( __METHOD__ . '-pfunc' );