From c31ebf26c7d8196f37ba51cf55ef43c5dc8af380 Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 20 Jul 2002 18:50:23 +0000 Subject: [PATCH] Doesn't display discussions AND forums in the Activities --- course/topics.php | 3 --- course/view.php | 4 ++++ course/weeks.php | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/course/topics.php b/course/topics.php index 346e099b2ff..7863037505e 100644 --- a/course/topics.php +++ b/course/topics.php @@ -67,9 +67,6 @@ $modicon = array(); if ($modtype) { foreach ($modtype as $modname => $modfullname) { - if ($modname == "discuss") { - continue; // Covered by forum - } $moddata[] = "id\">".$modfullname."s"; $modicon[] = "\"$modfullname\""; } diff --git a/course/view.php b/course/view.php index 85f5c526478..a3f0fa69d8d 100644 --- a/course/view.php +++ b/course/view.php @@ -50,6 +50,10 @@ $mods[$mod->id] = $mod; $modtype[$mod->modname] = $mod->modfullname; } + if (isset($modtype["forum"]) and isset($modtype["discuss"])) { + // We only need one of them + unset($modtype["discuss"]); + } ksort($modtype); } diff --git a/course/weeks.php b/course/weeks.php index 47f03a251e0..00a0d556215 100644 --- a/course/weeks.php +++ b/course/weeks.php @@ -50,9 +50,6 @@ $modicon = array(); if ($modtype) { foreach ($modtype as $modname => $modfullname) { - if ($modname == "discuss") { - continue; // Covered by forum - } $moddata[] = "id\">".$modfullname."s"; $modicon[] = "\"$modfullname\""; }