From 9861fbb6d69ee8ff4a98a6cf0525dfe0756a3728 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Fri, 19 Apr 2024 13:29:47 +0100 Subject: [PATCH] Fix docs related to loading custom Docker configuration file. They cause a fatal error. See #285. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 963a0244362..02228ffd6cc 100644 --- a/README.md +++ b/README.md @@ -236,10 +236,10 @@ to load test-specific configuration: ``` // Load moodle-docker config file if we are in moodle-docker environment if (getenv('MOODLE_DOCKER_RUNNING')) { - require_once($CFG->dirroot . '/config.docker-template.php'); + require_once(__DIR__ . '/config.docker-template.php'); } -require_once($CFG->dirroot . '/lib/setup.php'); // Do not edit. +require_once(__DIR__ . '/lib/setup.php'); // Do not edit. ``` ## Local customisations