CONTRIB-490 "Adding support for generation of test calculated question type" replacing old dml function call with new call to method on $DB.

This commit is contained in:
jamiesensei
2008-06-21 16:33:55 +00:00
parent 377ba22684
commit c9f4940e64
+1 -1
View File
@@ -1101,7 +1101,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
$form->questiontext = "What is {a} + {b}?";
if ($courseid) {
$course = get_record('course', 'id', $courseid);
$course = $DB->get_record('course', array('id'=> $courseid));
}
$new_question = $this->save_question($question, $form, $course);