From b31bc48d85e7a4829a17d0cbd6ef5347ec939c66 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 1 Dec 2006 08:50:33 +0000 Subject: - Patch #100612 by Gerhard: can't add class to table header cells. --- includes/tablesort.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/tablesort.inc b/includes/tablesort.inc index eb1415615..f976eb512 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -66,7 +66,12 @@ function tablesort_header($cell, $header, $ts) { $title = t('sort by @s', array('@s' => $cell['data'])); if ($cell['data'] == $ts['name']) { $ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc'); - $cell['class'] = 'active'; + if (isset($cell['class'])) { + $cell['class'] .= ' active'; + } + else { + $cell['class'] = 'active'; + } $image = theme('tablesort_indicator', $ts['sort']); } else { -- cgit v1.2.3