diff --git a/includes/smarty.php b/includes/smarty.php index 0e8e3c8..b264562 100644 --- a/includes/smarty.php +++ b/includes/smarty.php @@ -308,7 +308,8 @@ smarty_register_function('format_size','smarty_format_size'); function smarty_table_ordered_th($params, $smarty) { if ($params['order'] && $params['url'] && $params['text'] && is_array($params['search'])) { - echo "".$params['text'].""; + $params['url'] .= (strpos($params['url'], '?') === false?'?':'&')."order=".$params['order']; + echo "".$params['text'].""; } if ($params['order']==$params['search']['order']) { echo (