missing global $CFG ; line 577
authorpichetp <pichetp>
Sat, 6 Oct 2007 19:02:26 +0000 (19:02 +0000)
committerpichetp <pichetp>
Sat, 6 Oct 2007 19:02:26 +0000 (19:02 +0000)
  function save_dataset_items($question, $fromform){
global $CFG;

question/type/calculated/questiontype.php

index a19254f..d9eb54f 100644 (file)
@@ -576,6 +576,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
     }
 
     function save_dataset_items($question, $fromform){
+        global $CFG ;
         // max datasets = 100 items
         $max100 = 100 ;
         $regenerate = optional_param('forceregeneration', 0, PARAM_BOOL);