summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-13 19:18:39 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-13 19:18:39 +0000
commite688dfe6dbb5338a6cfe13775aacba70534e9a36 (patch)
tree5a1b29bf310aa4534cddbfa502ea440cc674f752 /includes
parent2ff32224580139f021eed6ac2eff5b05bb709ff7 (diff)
downloadbrdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.gz
brdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.bz2
- Fixed prefix problem with the book module. Patch by Moshe.
- Usability improvements to the user module: removed some redundant menu items by taking advantage of the column sorting, added status messages and so on. Patch by Moshe plus some fixes. - Made the profile module use the table() function. Patch by Moshe. - Fixed breadcrumb spacing. Patch by Moshe. - Fixed colspan problem with node overview table. Patch by Stefan. - Fixed inconsistency with table sorting. Patch 0122 by Al.
Diffstat (limited to 'includes')
-rw-r--r--includes/tablesort.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 2e16d8a8d..44a0db948 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -35,6 +35,9 @@ function tablesort($cell, $header) {
$image = "&nbsp;<img border=\"0\" src=\"". theme("image", "arrow-". $ts["sort"]. ".gif"). "\"></img>";
$dir = array("asc" => "ascending", "desc" => "descending");
$title = t("sort ". $dir[$ts["sort"]]);
+ } else {
+ // If the user clicks a different header, we want to sort ascending initially.
+ $ts["sort"] = "asc";
}
$cell["data"] = l($cell["data"] . $image, $_GET["q"], array("title" => $title), "sort=". $ts["sort"]. "&order=". urlencode($cell["data"]). $ts["query_string"]);