From 65eebc1dc162f2b4f9dcae485cc48d0f6217492f Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Sat, 15 Aug 2009 07:58:36 +0000 Subject: [PATCH] MDL-19142 assignment/restore small fix to pass $info to subtypes relative to current assignment rather than the full array --- mod/assignment/restorelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assignment/restorelib.php b/mod/assignment/restorelib.php index c6ca5fa238d..50f3da139da 100644 --- a/mod/assignment/restorelib.php +++ b/mod/assignment/restorelib.php @@ -209,7 +209,7 @@ $class = 'assignment_' . $assignment->assignmenttype; require_once($CFG->dirroot . '/mod/assignment/lib.php'); require_once($CFG->dirroot . '/mod/assignment/type/' . $assignment->assignmenttype . '/assignment.class.php'); - call_user_func(array($class, 'restore_one_submission'), $info, $restore, $assignment, $submission); + call_user_func(array($class, 'restore_one_submission'), $sub_info, $restore, $assignment, $submission); } else { $status = false; }