Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.240 diff -u -r1.240 theme.inc --- includes/theme.inc 31 May 2005 21:14:26 -0000 1.240 +++ includes/theme.inc 20 Jun 2005 12:44:09 -0000 @@ -726,6 +726,17 @@ return $output; } +function theme_tablesort_header($style) { + switch ($style) { + case "asc": + return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending')); + break; + case "desc": + return theme('image', 'misc/arrow-desc.png', t('sort icon'), t('sort descending')); + break; + } +} + /** * Return a themed box. * Index: includes/tablesort.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/tablesort.inc,v retrieving revision 1.33 diff -u -r1.33 tablesort.inc --- includes/tablesort.inc 31 May 2005 19:54:31 -0000 1.33 +++ includes/tablesort.inc 20 Jun 2005 12:43:50 -0000 @@ -79,8 +79,7 @@ if ($cell['data'] == $ts['name']) { $ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc'); $cell['class'] = 'active'; - $title = ($ts['sort'] == 'asc' ? t('sort ascending') : t('sort descending')); - $image = ' '. theme('image', 'misc/arrow-'. $ts['sort'] .'.png', t('sort icon'), $title); + $image = theme('tablesort_header', $ts['sort']); } else { // If the user clicks a different header, we want to sort ascending initially.