summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-27 16:02:31 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-27 16:02:31 +0000
commit0a352809783d3f336b9da862f51a244a135134d4 (patch)
tree3ecd41160be1d4c06e22a243505bcfa941a25f96 /includes
parentd4e7affba8faf00bccc48ec6028b9f20e62a35fc (diff)
downloadbrdo-0a352809783d3f336b9da862f51a244a135134d4.tar.gz
brdo-0a352809783d3f336b9da862f51a244a135134d4.tar.bz2
- Patch #8603 by TDobes: added support for sticky forum topics to the blog
and forum module.
Diffstat (limited to 'includes')
-rw-r--r--includes/tablesort.inc4
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";
}
}