MDL-22735 finally fixed incorrectly hardcoded groupedit button on course page in edit mode

This commit is contained in:
Petr Skoda
2010-07-25 18:04:36 +00:00
parent 74f64f62bb
commit 525e16ce0c
+1 -2
View File
@@ -1465,8 +1465,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
}
if ($isediting) {
// TODO: we must define this as mod property!
if ($groupbuttons and $mod->modname != 'label' and $mod->modname != 'resource' and $mod->modname != 'glossary') {
if ($groupbuttons and plugin_supports('mod', $mod->modname, FEATURE_GROUPS, 0)) {
if (! $mod->groupmodelink = $groupbuttonslink) {
$mod->groupmode = $course->groupmode;
}