From 47e912e4f0b15300746adcd0bd621b8505f29560 Mon Sep 17 00:00:00 2001 From: Richard Lobb Date: Tue, 5 Mar 2024 14:18:41 +1300 Subject: [PATCH] Fix bug in last commit which assumed a fixed location for MOODLEHOME. --- ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');