From 0a352809783d3f336b9da862f51a244a135134d4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 27 Jun 2004 16:02:31 +0000 Subject: - Patch #8603 by TDobes: added support for sticky forum topics to the blog and forum module. --- includes/tablesort.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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"; } } -- cgit v1.2.3