mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
Doesn't display discussions AND forums in the Activities
This commit is contained in:
parent
37b155148d
commit
c31ebf26c7
3 changed files with 4 additions and 6 deletions
|
@ -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\">";
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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\">";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue