summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/tablesort.inc12
1 files changed, 5 insertions, 7 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 13a9745ab..22b5b9648 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -2,14 +2,12 @@
// $Id$
function tablesort_init($header) {
- static $ts;
- if (!$ts) {
- $ts["order"] = tablesort_get_order($header);
- $ts["order_sql"] = tablesort_get_order_sql($header, $ts["order"]);
- $ts["sort"] = tablesort_get_sort($header);
- $ts["query_string"] = tablesort_get_querystring();
- }
+ $ts["order"] = tablesort_get_order($header);
+ $ts["order_sql"] = tablesort_get_order_sql($header, $ts["order"]);
+ $ts["sort"] = tablesort_get_sort($header);
+ $ts["query_string"] = tablesort_get_querystring();
+
return $ts;
}