diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-14 18:28:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-14 18:28:17 +0000 |
commit | df3afcbc449773f4768e5dc4b05e7fb2c1197283 (patch) | |
tree | b0afcfc882ff867a4025efb506a983555b3673bd /includes/tablesort.inc | |
parent | 18e840ac66043cb3f7561d0f016e1c71534b30e6 (diff) | |
download | brdo-df3afcbc449773f4768e5dc4b05e7fb2c1197283.tar.gz brdo-df3afcbc449773f4768e5dc4b05e7fb2c1197283.tar.bz2 |
- Don't use the global theme object; use theme() instead.
Diffstat (limited to 'includes/tablesort.inc')
-rw-r--r-- | includes/tablesort.inc | 6 |
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 = " <img border=\"0\" src=\"". $theme->image("arrow-". $ts["sort"]. ".gif"). "\"></img>"; + $image = " <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 +?> |