From 4a14809c5755c4e7e10508d93f6907e02ed6c14b Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Fri, 7 Jan 2005 18:27:06 +0000 Subject: [PATCH] Filtering can now be turned off for the helpdesk (patch by Christian Beer) svn path=/trunk/boinc/; revision=5017 --- html/inc/forum.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index baaa05c35b..8f48342d27 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -426,7 +426,7 @@ function show_posts($thread, $sort_style, $filter, $show_controls=true, $do_colo if ($is_helpdesk) { if ($firstPost) { - show_post($firstPost, $thread, $logged_in_user, $n, $controls, true); + show_post($firstPost, $thread, $logged_in_user, $n, $controls, true,$filter); if ($firstPost->timestamp>$logged_in_user->thread_last_visited){ $first_unread_post=$firstPost; } @@ -586,7 +586,7 @@ function show_post($post, $thread, $logged_in_user, $n, $controls=FORUM_CONTROLS if ($controls == HELPDESK_CONTROLS && $separate) { echo ""; } else if ($controls == HELPDESK_CONTROLS && !$separate) { - echo " / Score: ", ($post->score * $post->votes), ""; + echo " / Score: ", round(($post->score * $post->votes),0), ""; } else { echo " / Rating: ", round(intval(($post->score * $post->votes)+0.01),0), " - rate: id."&choice=p\">+ / id."&choice=n\">-"; }