Index: trunk/phase3/includes/CategoryViewer.php |
— | — | @@ -486,10 +486,11 @@ |
487 | 487 | # Split into three columns |
488 | 488 | $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); |
489 | 489 | |
490 | | - $ret = '<table width="100%"><tr valign="top"><td>'; |
| 490 | + $ret = '<table width="100%"><tr valign="top">'; |
491 | 491 | $prevchar = null; |
492 | 492 | |
493 | 493 | foreach ( $columns as $column ) { |
| 494 | + $ret .= '<td width="33.3%">'; |
494 | 495 | $colContents = array(); |
495 | 496 | |
496 | 497 | # Kind of like array_flip() here, but we keep duplicates in an |
— | — | @@ -519,10 +520,10 @@ |
520 | 521 | $prevchar = $char; |
521 | 522 | } |
522 | 523 | |
523 | | - $ret .= "</td>\n<td>"; |
| 524 | + $ret .= "</td>\n"; |
524 | 525 | } |
525 | 526 | |
526 | | - $ret .= '</td></tr></table>'; |
| 527 | + $ret .= '</tr></table>'; |
527 | 528 | return $ret; |
528 | 529 | } |
529 | 530 | |