Skip to content

Commit

Permalink
Fix bug in last commit which assumed a fixed location for MOODLEHOME.
Browse files Browse the repository at this point in the history
  • Loading branch information
trampgeek committed Mar 5, 2024
1 parent 4fb41f9 commit 47e912e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 47e912e

Please sign in to comment.