From: <var...@us...> - 2009-01-12 15:44:58
|
Revision: 6393 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6393&view=rev Author: vargenau Date: 2009-01-12 15:44:50 +0000 (Mon, 12 Jan 2009) Log Message: ----------- Match for @@ Modified Paths: -------------- trunk/lib/plugin/WikicreoleTable.php Modified: trunk/lib/plugin/WikicreoleTable.php =================================================================== --- trunk/lib/plugin/WikicreoleTable.php 2009-01-11 17:47:52 UTC (rev 6392) +++ trunk/lib/plugin/WikicreoleTable.php 2009-01-12 15:44:50 UTC (rev 6393) @@ -100,7 +100,7 @@ for ($i=0; $i<$nbrows; $i++) { for ($j=0; $j<$nbcols; $j++) { - if ($table[$i][$j][0] == '@') { + if (preg_match('/@@/', $table[$i][$j])) { $table[$i][$j] = compute_tablecell($table, $i, $j, $nbrows, $nbcols); } } @@ -110,7 +110,7 @@ foreach ($table as $row) { $htmlrow = HTML::tr(); foreach ($row as $cell) { - if ($cell[0] == '=') { + if ($cell && $cell[0] == '=') { $cell = trim(substr($cell, 1)); $htmlrow->pushContent(HTML::th(TransformInline($cell, 2.0, $basepage))); } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |