]> git.mjollnir.org Git - moodle.git/commitdiff
Fix comedy require_once. Merged from MOODLE_16_STABLE.
authortjhunt <tjhunt>
Tue, 24 Apr 2007 21:16:14 +0000 (21:16 +0000)
committertjhunt <tjhunt>
Tue, 24 Apr 2007 21:16:14 +0000 (21:16 +0000)
question/type/datasetdependent/categorydatasetdefinitions.php

index 65f51cf772d5aa0022ff899697b972745d043e46..47a69237c4a7e925490218660009c607845198fd 100644 (file)
@@ -4,7 +4,7 @@
     ///// This page offers a way to define category level datasets  /////
     /////////////////////////////////////////////////////////////////////
 
-    require_once("$CFG->dirroot/config.php");
+    require_once(dirname(__FILE__) . '/../../../config.php');
 
     $category = required_param('category', PARAM_ALPHANUM);
     $question = optional_param('question', '', PARAM_INT);