- Fixed bug #5384: tablesort outputs invalid HTML (improved patch).

4.4.x
Dries Buytaert 2004-01-29 06:42:03 +00:00
parent 007efa52b6
commit abc8317a0b
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -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\"";
}
}