]> git.mjollnir.org Git - moodle.git/commitdiff
Fix some grader report breakage.
authortjhunt <tjhunt>
Thu, 2 Jul 2009 12:43:19 +0000 (12:43 +0000)
committertjhunt <tjhunt>
Thu, 2 Jul 2009 12:43:19 +0000 (12:43 +0000)
grade/lib.php
grade/report/grader/index.php

index e99944e4694d73605e43fd8206903c1124e05c22..eafc5bc888a8f1cd7cb4add1d98f6c0ebf9297b4 100644 (file)
@@ -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]);
             }
         }
     }
index 45aea1efe3b43e1fc66759fa922975b633f3bb68..ab9142ffc2ec8752d7d7c63bde7deb423cba2e62 100644 (file)
@@ -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>';