X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=blobdiff_plain;f=gforge%2Fwww%2Factivity%2Findex.php;h=9d520611815adcc9ece21da71c0e30be40e60cb0;hp=1ea8f4e1928c314187692664987cff6e8907d7f7;hb=41eb5ec73bdcfe8c469f250c4b17296a4af11a26;hpb=d9078a2879eb083ed1525753e19ffcd8af4ffd33 diff --git a/gforge/www/activity/index.php b/gforge/www/activity/index.php index 1ea8f4e192..9d52061181 100644 --- a/gforge/www/activity/index.php +++ b/gforge/www/activity/index.php @@ -72,29 +72,29 @@ site_project_header(array('title'=>_('Activity'),'group'=>$group_id,'toptab'=>'a $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'); }