This commit is contained in:
Shish 2024-02-07 23:01:45 +00:00
parent 7adb7348d7
commit e0d9a20f4c

View file

@ -312,14 +312,6 @@ function get_base_href(): string
elseif(isset($_SERVER['SCRIPT_FILENAME']) && isset($_SERVER['DOCUMENT_ROOT'])) {
$self = substr($_SERVER['SCRIPT_FILENAME'], strlen(rtrim($_SERVER['DOCUMENT_ROOT'], "/")));
}
/*
die(var_export([
$_SERVER['PHP_SELF'],
$_SERVER['SCRIPT_FILENAME'],
$_SERVER['DOCUMENT_ROOT'],
$self
], true));
*/
$dir = dirname($self);
$dir = str_replace("\\", "/", $dir);
$dir = rtrim($dir, "/");