r13299 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13298‎ | r13299 | r13300 >
Date:16:37, 24 March 2006
Author:gabrielwicke
Status:old
Tags:
Comment:
This is actually the table special case, the other was about script being wrapped in a paragraph
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -830,6 +830,9 @@
831831 }
832832
833833 $t = implode ( "\n" , $t ) ;
 834+ # special case: don't return empty table
 835+ if($t == "<table>\n<tr><td></td></tr>\n</table>")
 836+ $t = '';
834837 wfProfileOut( $fname );
835838 return $t ;
836839 }

Status & tagging log