diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index b66cccb01..31c01afca 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -322,9 +322,7 @@ function theme_table($header, $rows, $attributes = NULL) { $ts = tablesort_init($header); $output .= " <tr>"; foreach ($header as $cell) { - if (is_array($cell) && $cell['field']) { - $cell = tablesort($cell, $header); - } + $cell = tablesort_header($cell, $header, $ts); $output .= _theme_table_cell($cell, 1); } $output .= " </tr>\n"; @@ -345,14 +343,7 @@ function theme_table($header, $rows, $attributes = NULL) { } foreach ($row as $cell) { - if ($header[$i]['data'] == $ts['name'] && $header[$i]['field']) { - if (is_array($cell)) { - $cell['class'] .= ' active'; - } - else { - $cell = array('data' => $cell, 'class' => 'active'); - } - } + $cell = tablesort_cell($cell, $header, $ts, $i); $output .= _theme_table_cell($cell, 0); $i++; } |