- Fixed bug #5384: tablesort outputs invalid HTML (improved patch).
parent
007efa52b6
commit
abc8317a0b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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\"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue