summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include/html.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-14 12:23:08 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-14 12:23:08 +0000
commitfbfe177b9cf9566099c30a8daea5c0d7832c0a96 (patch)
tree80a1171058627fa37aa45092ebcd0f9467d4b6c4 /roundcubemail/program/include/html.php
parent2eddb925dd497390185e185fd43b67df52e808f2 (diff)
More code cleanup
git-svn-id: https://svn.roundcube.net/trunk@1532 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/html.php')
-rw-r--r--roundcubemail/program/include/html.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php
index 4ac45da65..4057bd14d 100644
--- a/roundcubemail/program/include/html.php
+++ b/roundcubemail/program/include/html.php
@@ -571,7 +571,7 @@ class html_table extends html
* @param array Cell attributes
* @param string Cell content
*/
- private function add_header($attr, $cont)
+ public function add_header($attr, $cont)
{
if (is_string($attr))
$attr = array('class' => $attr);
@@ -587,7 +587,7 @@ class html_table extends html
*
* @param array Row attributes
*/
- private function add_row($attr = array())
+ public function add_row($attr = array())
{
$this->rowindex++;
$this->colindex = 0;
@@ -612,7 +612,7 @@ class html_table extends html
if (!empty($this->header)) {
$rowcontent = '';
foreach ($this->header as $c => $col) {
- $rowcontent .= self::tag('th', $col->attrib, $col->content);
+ $rowcontent .= self::tag('td', $col->attrib, $col->content);
}
$thead = self::tag('thead', null, self::tag('tr', null, $rowcontent));
}
@@ -624,7 +624,7 @@ class html_table extends html
}
if ($r < $this->rowindex || count($row->cells)) {
- $tbody .= self::tag('tr', $rows->attrib, $rowcontent);
+ $tbody .= self::tag('tr', $row->attrib, $rowcontent);
}
}