diff --git a/ajax.php b/ajax.php index f8f12d84..5d2173ce 100644 --- a/ajax.php +++ b/ajax.php @@ -37,7 +37,7 @@ // Hack to prevent AJAX calls from overwriting the test-sandbox-config during behat testing if ($CFG->prefix === $CFG->behat_prefix) { - require_once('/var/www/html/moodle/question/type/coderunner/tests/fixtures/test-sandbox-config.php'); + require_once($CFG->dirroot .'/question/type/coderunner/tests/fixtures/test-sandbox-config.php'); } require_once($CFG->dirroot . '/question/engine/lib.php');