fixed nowexists keys in configuration
This commit is contained in:
@ -60,8 +60,8 @@ if (!$loaded) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\') ? "https://" : "http://";
|
$protocol = (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\') ? "https://" : "http://";
|
||||||
$host = $_SERVER[\'HTTP_HOST\'];
|
$host = $_SERVER[\'HTTP_HOST\'] ?? \'localhost\';
|
||||||
$uri = $_SERVER[\'REQUEST_URI\']; // obsahuje aj query string
|
$uri = $_SERVER[\'REQUEST_URI\'] ?? \'\'; // obsahuje aj query string
|
||||||
|
|
||||||
define(\'URL_PREFIX\', $protocol.$host.str_replace(basename($_SERVER[\'SCRIPT_NAME\']), \'\', $_SERVER[\'SCRIPT_NAME\']));
|
define(\'URL_PREFIX\', $protocol.$host.str_replace(basename($_SERVER[\'SCRIPT_NAME\']), \'\', $_SERVER[\'SCRIPT_NAME\']));
|
||||||
');
|
');
|
||||||
|
|||||||
Reference in New Issue
Block a user