From 4772e6f2292aa67e434f11bd85bd660da8053263 Mon Sep 17 00:00:00 2001 From: Julien HEYMAN Date: Thu, 2 Apr 2009 12:43:43 +0000 Subject: [PATCH] We show the top downloads only if sys_use_frs is true --- gforge/www/include/features_boxes.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gforge/www/include/features_boxes.php b/gforge/www/include/features_boxes.php index e7eafc5f82..edafe3f1f9 100644 --- a/gforge/www/include/features_boxes.php +++ b/gforge/www/include/features_boxes.php @@ -13,7 +13,7 @@ require_once $gfcommon.'include/FusionForge.class.php'; require_once $gfcommon.'include/tag_cloud.php'; function show_features_boxes() { - GLOBAL $HTML,$sys_use_ratings; + GLOBAL $HTML,$sys_use_ratings,$sys_use_frs; $return = ''; $return .= $HTML->boxTop(_('Tag Cloud')); @@ -22,8 +22,10 @@ function show_features_boxes() { $return .= ''; $return .= $HTML->boxMiddle(sprintf(_('%1$s Statistics'), $GLOBALS['sys_name']),0); $return .= show_sitestats(); - $return .= $HTML->boxMiddle(_('Top Project Downloads')); - $return .= show_top_downloads(); + if ($sys_use_frs) { + $return .= $HTML->boxMiddle(_('Top Project Downloads')); + $return .= show_top_downloads(); + } if ($sys_use_ratings) { $return .= $HTML->boxMiddle(_('Highest Ranked Users')); $return .= show_highest_ranked_users(); -- 2.30.2