From cc9f5a5a94492b164fa386789054dc5162481c33 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Sat, 10 May 2008 18:31:05 +0000 Subject: [PATCH] Fix for bug 13677 --- includes/Parser.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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' ); -- 2.20.1