fixed parser error
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
d45e79dfe9
commit
ccd1e2cc6a
4
boot.php
4
boot.php
|
@ -668,7 +668,7 @@ class App {
|
|||
if (x($_SERVER, 'SERVER_NAME')) {
|
||||
$this->hostname = $_SERVER['SERVER_NAME'];
|
||||
|
||||
if (x($_SERVER,'SERVER_PORT') && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443)
|
||||
if (x($_SERVER, 'SERVER_PORT') && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
|
||||
$this->hostname .= ':' . $_SERVER['SERVER_PORT'];
|
||||
}
|
||||
/*
|
||||
|
@ -676,6 +676,7 @@ class App {
|
|||
* or in a sub-directory and adjust accordingly
|
||||
*/
|
||||
|
||||
/// @TODO This kind of escaping breaks syntax-highlightning on CoolEdit (Midnight Commander)
|
||||
$path = trim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
|
||||
if (isset($path) && strlen($path) && ($path != $this->path)) {
|
||||
$this->path = $path;
|
||||
|
@ -691,6 +692,7 @@ class App {
|
|||
$_SERVER["argc"] --;
|
||||
}
|
||||
|
||||
/// @TODO no longer needed?
|
||||
#set_include_path("include/$this->hostname" . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
if ((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,9) === "pagename=") {
|
||||
|
|
Loading…
Reference in a new issue