From: <var...@us...> - 2008-09-26 13:02:30
|
Revision: 6282 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6282&view=rev Author: vargenau Date: 2008-09-26 13:02:23 +0000 (Fri, 26 Sep 2008) Log Message: ----------- One tbody is enough Modified Paths: -------------- trunk/lib/plugin/MediawikiTable.php Modified: trunk/lib/plugin/MediawikiTable.php =================================================================== --- trunk/lib/plugin/MediawikiTable.php 2008-09-26 09:38:17 UTC (rev 6281) +++ trunk/lib/plugin/MediawikiTable.php 2008-09-26 13:02:23 UTC (rev 6282) @@ -116,9 +116,14 @@ $row->pushContent($cell); unset($cell); } - $tbody->pushContent($row); - $table->pushContent($tbody); - $tbody = HTML::tbody(); + if (isset($thead)) { + $thead->pushContent($row); + $table->pushContent($thead); + unset($thead); + $tbody = HTML::tbody(); + } else { + $tbody->pushContent($row); + } } $row = HTML::tr(); $attrs = $this->_parse_attr(substr($line,2)); @@ -163,10 +168,10 @@ } if (substr($line,0,1) == "!") { $cell = HTML::th(); // Header - $tbody = HTML::thead(); + $thead = HTML::thead(); } else { $cell = HTML::td(); - $tbody = HTML::tbody(); + if (!isset($tbody)) $tbody = HTML::tbody(); } $line = substr($line, 1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |