summaryrefslogtreecommitdiff
path: root/includes/tablesort.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/tablesort.inc')
-rw-r--r--includes/tablesort.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/tablesort.inc b/includes/tablesort.inc
index 308693b3c..a15bcdfe4 100644
--- a/includes/tablesort.inc
+++ b/includes/tablesort.inc
@@ -33,8 +33,7 @@ function tablesort($cell, $header) {
if ($cell['data'] == $ts['order']) {
$cell['class'] = 'cell-highlight';
$image = '&nbsp;<img src="' . theme('image', 'arrow-' . $ts['sort'] . '.gif"') . ' alt="'. t('sort icon') .'" />';
- $dir = array("asc" => "ascending", "desc" => "descending");
- $title = t("sort ". $dir[$ts['sort']]);
+ $title = ($ts['sort'] == 'asc' ? t("sort ascending") : t("sort descending"));
} else {
// If the user clicks a different header, we want to sort ascending initially.
$ts['sort'] = "asc";