From 5fe11da983851707bb4e713908be2792d4ee1d15 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 11 Jul 2001 22:43:10 +0000 Subject: [PATCH] Added feature to return only the link(), not the back --- phpgwapi/inc/class.nextmatchs.inc.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index cb9a1b3480..d9820c1dc6 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -440,12 +440,11 @@ @param $text ? @param $extra default '' */ - function show_sort_order($sort,$var,$order,$program,$text,$extra='') + function show_sort_order($sort,$var,$order,$program,$text,$extra='',$build_a_href=True) { global $phpgw, $filter, $qfield, $start, $query; $_query = stripslashes($query); - if (($order == $var) && ($sort == 'ASC')) { $sort = 'DESC'; @@ -459,8 +458,16 @@ $sort = 'ASC'; } - return '' . $text . ''; + if ($build_a_href) + { + return '' . $text . ''; + } + else + { + return $phpgw->link($program,"order=$var&sort=$sort&filter=$filter&" + . "qfield=$qfield&start=$start&query=" . urlencode($_query) . $extra); + } } function show_sort_order_imap($sort,$order,$program,$text,$extra='')