Index: trunk/phase3/includes/Parser.php |
— | — | @@ -2835,7 +2835,9 @@ |
2836 | 2836 | } |
2837 | 2837 | $result = call_user_func_array( $callback, $allArgs ); |
2838 | 2838 | $found = true; |
2839 | | - |
| 2839 | + $noparse = true; |
| 2840 | + $preprocessFlags = 0; |
| 2841 | + |
2840 | 2842 | if ( is_array( $result ) ) { |
2841 | 2843 | if ( isset( $result[0] ) ) { |
2842 | 2844 | $text = $result[0]; |
— | — | @@ -2848,6 +2850,10 @@ |
2849 | 2851 | } else { |
2850 | 2852 | $text = $result; |
2851 | 2853 | } |
| 2854 | + if ( !$noparse ) { |
| 2855 | + $text = $this->preprocessToDom( $text, $preprocessFlags ); |
| 2856 | + $isChildObj = true; |
| 2857 | + } |
2852 | 2858 | } |
2853 | 2859 | } |
2854 | 2860 | wfProfileOut( __METHOD__ . '-pfunc' ); |