diff options
-rw-r--r-- | includes/tablesort.inc | 4 | ||||
-rw-r--r-- | includes/theme.inc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc index 58f269225..74bd5e3ca 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -41,6 +41,10 @@ function tablesort($cell, $header) { } $cell['data'] = l($cell['data'] . $image, $_GET['q'], array("title" => $title), "sort=". $ts['sort']. "&order=". urlencode($cell['data']). $ts['query_string']); + + unset($cell['field']); + unset($cell['sort']); + return $cell; } diff --git a/includes/theme.inc b/includes/theme.inc index 0547abeff..03d92d980 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -502,7 +502,7 @@ function _theme_table_cell($cell, $header = 0) { if (is_array($cell)) { $data = $cell["data"]; foreach ($cell as $key => $value) { - if ($key != "data" && $key != "field") { + if ($key != "data") { $attributes .= " $key=\"$value\""; } } |