]> git.mjollnir.org Git - moodle.git/commitdiff
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 a19254f1450eb7c6e77e977fafe69f2485689418..d9eb54f7731fcc344776f71e59c116cd5155ce23 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);