[Fusionforge-commits] r7288 - trunk/gforge/www/include

Julien HEYMAN jheyman at libremir.placard.fr.eu.org
Thu Apr 2 14:43:43 CEST 2009


Author: jheyman
Date: 2009-04-02 14:43:43 +0200 (Thu, 02 Apr 2009)
New Revision: 7288

Modified:
   trunk/gforge/www/include/features_boxes.php
Log:
We show the top downloads only if sys_use_frs is true

Modified: trunk/gforge/www/include/features_boxes.php
===================================================================
--- trunk/gforge/www/include/features_boxes.php	2009-04-02 12:42:21 UTC (rev 7287)
+++ trunk/gforge/www/include/features_boxes.php	2009-04-02 12:43:43 UTC (rev 7288)
@@ -13,7 +13,7 @@
 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 @@
 	$return .= '</center>';
 	$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();




More information about the Fusionforge-commits mailing list