diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/tablesort.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc index 2a6fc04c2..e72e078f5 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -14,12 +14,12 @@ function tablesort_pager() { return $cgi; } -function tablesort_sql($header) { +function tablesort_sql($header, $before = "") { $ts = tablesort_init($header); if ($ts['sql']) { $sql = check_query($ts['sql']); $sort = strtoupper(check_query($ts['sort'])); - return " ORDER BY $sql $sort"; + return " ORDER BY $before $sql $sort"; } } |