summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/tablesort.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 65b0fdca2..13a9745ab 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -25,15 +25,13 @@ function tablesort_sql($header) {
}
function tablesort($cell, $header) {
- global $theme;
-
$ts = tablesort_init($header);
$title = t("sort by %s", array("%s" => $cell["data"]));
// special formatting for the currently sorted column header
if ($cell["data"] == $ts["order"]) {
$cell["class"] = "cell-highlight";
- $image = "&nbsp;<img border=\"0\" src=\"". $theme->image("arrow-". $ts["sort"]. ".gif"). "\"></img>";
+ $image = "&nbsp;<img border=\"0\" src=\"". theme("image", "arrow-". $ts["sort"]. ".gif"). "\"></img>";
$dir = array("asc" => "ascending", "desc" => "descending");
$title = t("sort ". $dir[$ts["sort"]]);
}
@@ -93,4 +91,4 @@ function tablesort_get_sort($headers) {
return 'asc';
}
-?> \ No newline at end of file
+?>