mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Fix some grader report breakage.
This commit is contained in:
parent
42d5737a94
commit
bdbc743c1f
@ -640,7 +640,7 @@ function grade_get_plugin_info($courseid, $active_type, $active_plugin) {
|
||||
}
|
||||
$importnames = array();
|
||||
if (!empty($imports)) {
|
||||
foreach ($imports as $plugin) {
|
||||
foreach ($imports as $plugin => $plugindir) {
|
||||
$pluginstr = get_string('modulename', 'gradeimport_'.$plugin);
|
||||
$url = $url_prefix.'import/'.$plugin.'/index.php?id='.$courseid;
|
||||
if ($active_type == 'import' and $active_plugin == $plugin ) {
|
||||
@ -657,9 +657,9 @@ function grade_get_plugin_info($courseid, $active_type, $active_plugin) {
|
||||
|
||||
// standard export plugins
|
||||
if ($exports = get_plugin_list('gradeexport')) { // Get all installed export plugins
|
||||
foreach ($exports as $key => $plugin) { // Remove ones we can't see
|
||||
foreach ($exports as $plugin => $plugindir) { // Remove ones we can't see
|
||||
if (!has_capability('gradeexport/'.$plugin.':view', $context)) {
|
||||
unset($exports[$key]);
|
||||
unset($exports[$plugin]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -155,7 +155,7 @@ $numusers = $report->get_numusers();
|
||||
$report->load_final_grades();
|
||||
|
||||
/// Print header
|
||||
print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, null, $buttons);
|
||||
print_grade_page_head($COURSE->id, 'report', 'grader', $reportname, false, $buttons);
|
||||
|
||||
echo $report->group_selector;
|
||||
echo '<div class="clearer"></div>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user