Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Doesn't display discussions AND forums in the Activities

  • Loading branch information...
commit c31ebf26c7d8196f37ba51cf55ef43c5dc8af380 1 parent 37b1551
martin authored
Showing with 4 additions and 6 deletions.
  1. +0 −3  course/topics.php
  2. +4 −0 course/view.php
  3. +0 −3  course/weeks.php
View
3  course/topics.php
@@ -67,9 +67,6 @@
$modicon = array();
if ($modtype) {
foreach ($modtype as $modname => $modfullname) {
- if ($modname == "discuss") {
- continue; // Covered by forum
- }
$moddata[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modfullname."s</A>";
$modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
}
View
4 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);
}
View
3  course/weeks.php
@@ -50,9 +50,6 @@
$modicon = array();
if ($modtype) {
foreach ($modtype as $modname => $modfullname) {
- if ($modname == "discuss") {
- continue; // Covered by forum
- }
$moddata[] = "<A HREF=\"../mod/$modname/index.php?id=$course->id\">".$modfullname."s</A>";
$modicon[] = "<IMG SRC=\"../mod/$modname/icon.gif\" HEIGHT=16 WIDTH=16 ALT=\"$modfullname\">";
}

0 comments on commit c31ebf2

Please sign in to comment.
Something went wrong with that request. Please try again.