mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-32909' of git://github.com/netspotau/moodle-mod_assign
This commit is contained in:
commit
33e693b5e1
2 changed files with 5 additions and 4 deletions
|
@ -754,8 +754,8 @@ function assign_get_user_grades($assign, $userid=0) {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
require_once($CFG->dirroot . '/mod/assign/locallib.php');
|
||||||
|
|
||||||
$context = context_module::instance($assign->cmidnumber);
|
$assignment = new assign(null, null, null);
|
||||||
$assignment = new assign($context, null, null);
|
$assignment->set_instance($assign);
|
||||||
return $assignment->get_user_grades_for_gradebook($userid);
|
return $assignment->get_user_grades_for_gradebook($userid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -560,7 +560,7 @@ class assign {
|
||||||
if ($this->adminconfig) {
|
if ($this->adminconfig) {
|
||||||
return $this->adminconfig;
|
return $this->adminconfig;
|
||||||
}
|
}
|
||||||
$this->adminconfig = get_config('mod_assign');
|
$this->adminconfig = get_config('assign');
|
||||||
return $this->adminconfig;
|
return $this->adminconfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2865,7 +2865,8 @@ class assign {
|
||||||
$grades = array();
|
$grades = array();
|
||||||
$assignmentid = $this->get_instance()->id;
|
$assignmentid = $this->get_instance()->id;
|
||||||
|
|
||||||
$gradebookpluginname = $CFG->assign_feedback_plugin_for_gradebook;
|
$adminconfig = $this->get_admin_config();
|
||||||
|
$gradebookpluginname = $adminconfig->feedback_plugin_for_gradebook;
|
||||||
$gradebookplugin = null;
|
$gradebookplugin = null;
|
||||||
|
|
||||||
// find the gradebook plugin
|
// find the gradebook plugin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue