diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-29 06:42:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-29 06:42:03 +0000 |
commit | abc8317a0bf0bacd8daa1ce9e256868e586cd03a (patch) | |
tree | 29650ae11c8abc88a66de69502ec9078a039e58f | |
parent | 007efa52b646f6da5e5d09503f8cadb5933e8a76 (diff) | |
download | brdo-abc8317a0bf0bacd8daa1ce9e256868e586cd03a.tar.gz brdo-abc8317a0bf0bacd8daa1ce9e256868e586cd03a.tar.bz2 |
- Fixed bug #5384: tablesort outputs invalid HTML (improved patch).
-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\""; } } |