cleanup
This commit is contained in:
parent
7adb7348d7
commit
e0d9a20f4c
1 changed files with 0 additions and 8 deletions
|
@ -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, "/");
|
||||
|
|
Reference in a new issue