Fix root URL path

This commit is contained in:
Mikhail Golenkov
2021-03-18 15:50:15 +11:00
parent 47154e545f
commit 77ce63e4f9

View File

@@ -73,7 +73,7 @@ if (!empty($_SERVER['REQUEST_URI'])) {
$rooturl = parse_url($CFG->wwwroot);
$path = '';
if (array_key_exists('path', $rooturl) && !empty($rooturl['path'])) {
$path = $rooturl['url'];
$path = $rooturl['path'];
}
$url = $path.'/auth/outage/info.php';
$outageinfo = strpos($_SERVER['REQUEST_URI'], $url) === 0 ? true : false;