mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-10 21:08:41 +00:00
fix path
This commit is contained in:
parent
927ea35736
commit
2b8ca15e66
|
|
@ -11363,8 +11363,10 @@ class Mpdf implements \Psr\Log\LoggerAwareInterface
|
|||
if (!$str) {
|
||||
if (isset($_SERVER['SCRIPT_NAME'])) {
|
||||
$currentPath = dirname($_SERVER['SCRIPT_NAME']);
|
||||
} else {
|
||||
} elseif (isset($_SERVER['PHP_SELF'])) {
|
||||
$currentPath = dirname($_SERVER['PHP_SELF']);
|
||||
} else {
|
||||
$currentPath = __DIR__ . '/../../';
|
||||
}
|
||||
$currentPath = str_replace("\\", "/", $currentPath);
|
||||
if ($currentPath == '/') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user