From 5a53bf04a1779cf0b0bc6c888efe596b1c2b87e2 Mon Sep 17 00:00:00 2001 From: Brendan Heywood Date: Fri, 19 Jun 2020 09:17:39 +1000 Subject: [PATCH] Fixed bug with moodles under a subdir #196 --- bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.php b/bootstrap.php index 50dbf40..b06e11a 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -71,7 +71,7 @@ if (!empty($_SERVER['REQUEST_URI'])) { $rooturl = parse_url($CFG->wwwroot); $path = ''; if (array_key_exists('path', $rooturl) && !empty($rooturl['path'])) { - $path = $root['url']; + $path = $rooturl['url']; } $url = $path.'/auth/outage/info.php'; $outageinfo = strpos($_SERVER['REQUEST_URI'], $url) === 0 ? true : false;