r34594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34593‎ | r34594 | r34595 >
Date:18:31, 10 May 2008
Author:skizzerz
Status:old
Tags:
Comment:
Fix for bug 13677
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -2835,7 +2835,9 @@
28362836 }
28372837 $result = call_user_func_array( $callback, $allArgs );
28382838 $found = true;
2839 -
 2839+ $noparse = true;
 2840+ $preprocessFlags = 0;
 2841+
28402842 if ( is_array( $result ) ) {
28412843 if ( isset( $result[0] ) ) {
28422844 $text = $result[0];
@@ -2848,6 +2850,10 @@
28492851 } else {
28502852 $text = $result;
28512853 }
 2854+ if ( !$noparse ) {
 2855+ $text = $this->preprocessToDom( $text, $preprocessFlags );
 2856+ $isChildObj = true;
 2857+ }
28522858 }
28532859 }
28542860 wfProfileOut( __METHOD__ . '-pfunc' );

Status & tagging log