Fixing small bug that adds Label to add activity module dropdown all the time. should only be added to activity module when resource is restricted and label is not
This commit is contained in:
@@ -1117,6 +1117,7 @@ function print_section_add_menus($course, $section, $modnames, $vertical=false,
|
||||
|
||||
$output = '<div style="text-align: right">';
|
||||
if (course_allowed_module($course,'resource')) {
|
||||
$resourceallowed = true;
|
||||
$output .= popup_form("$CFG->wwwroot/course/mod.php?id=$course->id&section=$section&sesskey=$USER->sesskey&add=",
|
||||
$resources, "ressection$section", "", $straddresource, 'resource/types', $straddresource, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user