From: pichetp Date: Sat, 6 Oct 2007 19:02:26 +0000 (+0000) Subject: missing global $CFG ; line 577 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=aa78ab4cb3a3fe5aa1ead14effcd31e26c736703;p=moodle.git missing global $CFG ; line 577 function save_dataset_items($question, $fromform){ global $CFG; --- diff --git a/question/type/calculated/questiontype.php b/question/type/calculated/questiontype.php index a19254f145..d9eb54f773 100644 --- a/question/type/calculated/questiontype.php +++ b/question/type/calculated/questiontype.php @@ -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);