MDL-32094 fix E_STRICT issues in assignment

This commit is contained in:
Petr Skoda
2012-03-18 18:32:17 +01:00
parent 58eb9b9f2a
commit e7755fc627
5 changed files with 16 additions and 9 deletions
+3 -3
View File
@@ -2560,7 +2560,7 @@ class mod_assignment_grading_form extends moodleform {
}
}
function add_action_buttons() {
function add_action_buttons($cancel = true, $submitlabel = NULL) {
$mform =& $this->_form;
//if there are more to be graded.
if ($this->_customdata->nextid>0) {
@@ -3211,7 +3211,7 @@ function assignment_print_recent_activity($course, $viewfullnames, $timestart) {
return false;
}
$modinfo =& get_fast_modinfo($course); // reference needed because we might load the groups
$modinfo = get_fast_modinfo($course); // reference needed because we might load the groups
$show = array();
$grader = array();
@@ -3294,7 +3294,7 @@ function assignment_get_recent_mod_activity(&$activities, &$index, $timestart, $
$course = $DB->get_record('course', array('id'=>$courseid));
}
$modinfo =& get_fast_modinfo($course);
$modinfo = get_fast_modinfo($course);
$cm = $modinfo->cms[$cmid];