[Fusionforge-commits] r8825 - trunk/gforge/www/activity

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Feb 15 18:19:24 CET 2010


Author: lolando
Date: 2010-02-15 18:19:24 +0100 (Mon, 15 Feb 2010)
New Revision: 8825

Modified:
   trunk/gforge/www/activity/index.php
Log:
Stop displaying irrelevant links on project activity pages

Modified: trunk/gforge/www/activity/index.php
===================================================================
--- trunk/gforge/www/activity/index.php	2010-02-15 15:44:52 UTC (rev 8824)
+++ trunk/gforge/www/activity/index.php	2010-02-15 17:19:24 UTC (rev 8825)
@@ -72,29 +72,29 @@
 $ids=array();
 $texts=array();
 
-if ($GLOBALS['sys_use_forum']) {
+if ($GLOBALS['sys_use_forum'] && $group->usesForum ()) {
 	$ids[]='forumpost';
 	$texts[]=_('Forum Post');
 }
 
-if ($GLOBALS['sys_use_tracker']) {
+if ($GLOBALS['sys_use_tracker'] && $group->usesTracker ()) {
 	$ids[]='trackeropen';
 	$texts[]=_('Tracker Opened');
 	$ids[]='trackerclose';
 	$texts[]=_('Tracker Closed');
 }
 
-if ($GLOBALS['sys_use_news']) {
+if ($GLOBALS['sys_use_news'] && $group->usesNews ()) {
 	$ids[]='news';
 	$texts[]=_('News');
 }
 
-if ($GLOBALS['sys_use_scm']) {
+if ($GLOBALS['sys_use_scm'] && $group->usesSCM ()) {
 	$ids[]='commit';
 	$texts[]=_('Commits');
 }
 
-if ($GLOBALS['sys_use_frs']) {
+if ($GLOBALS['sys_use_frs'] && $group->usesFRS ()) {
 	$ids[]='frsrelease';
 	$texts[]=_('FRS Release');
 }




More information about the Fusionforge-commits mailing list