Merge branch 'wip-MDL-31179-master' of github.com:marinaglancy/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 23 Jan 2012 00:19:18 +0000 (01:19 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 23 Jan 2012 00:19:18 +0000 (01:19 +0100)
grade/grading/lib.php

index a2c2d26..e27a4ec 100644 (file)
@@ -461,7 +461,7 @@ class grading_manager {
      * @return grading_controller
      */
     public function get_controller($method) {
-        global $CFG;
+        global $CFG, $DB;
 
         $this->ensure_isset(array('context', 'component', 'area'));