Fixed bug with moodles under a subdir #196

This commit is contained in:
Brendan Heywood
2020-06-19 09:17:39 +10:00
parent b2e8100c19
commit 5a53bf04a1

View File

@@ -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;