Fix for bug 13677
authorRyan Schmidt <skizzerz@users.mediawiki.org>
Sat, 10 May 2008 18:31:05 +0000 (18:31 +0000)
committerRyan Schmidt <skizzerz@users.mediawiki.org>
Sat, 10 May 2008 18:31:05 +0000 (18:31 +0000)
includes/Parser.php

index 8f77ecf..9a73ee7 100644 (file)
@@ -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' );