fixed missing globals
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:45:59 +0000 (11:45 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 11:45:59 +0000 (11:45 +0000)
question/contextmoveq_form.php
question/editlib.php
question/type/calculated/questiontype.php

index e77a627..2af39a5 100644 (file)
@@ -9,7 +9,7 @@ require_once($CFG->libdir.'/formslib.php');
 class question_context_move_question_form extends moodleform {
 
     function definition() {
-        global $CFG;
+        global $CFG, $OUTPUT;
         $mform    =& $this->_form;
 
 //--------------------------------------------------------------------------------
index cb5c9b8..0049d7e 100644 (file)
@@ -1666,7 +1666,7 @@ $QUESTION_EDITTABCAPS = question_edit_contexts::$CAPS;
  * Make sure user is logged in as required in this context.
  */
 function require_login_in_context($contextorid = null){
-    global $DB;
+    global $DB, $CFG;
     if (!is_object($contextorid)){
         $context = get_context_instance_by_id($contextorid);
     } else {
index 19bac11..8156d7d 100644 (file)
@@ -1009,6 +1009,7 @@ class question_calculated_qtype extends default_questiontype {
 
 
     function update_dataset_options($datasetdefs, $form) {
+        global $OUTPUT;
         // Do we have informatin about new options???
         if (empty($form->definition) || empty($form->calcmin)
             || empty($form->calcmax) || empty($form->calclength)