CONTRIB-490 "Adding support for generation of test calculated question type" replacing old dml function call with new call to method on $DB. Ooops, and adding DB as global variable in method.

This commit is contained in:
jamiesensei 2008-06-21 16:35:26 +00:00
parent c9f4940e64
commit 01f3ba1350

View file

@ -1085,6 +1085,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
* Alternate DB table prefix may be used to facilitate data deletion.
*/
function generate_test($name, $courseid = null) {
global $DB;
list($form, $question) = parent::generate_test($name, $courseid);
$form->feedback = 1;
$form->multiplier = array(1, 1);