Fixes for files within dir
This commit is contained in:
parent
0f8c8e9fa9
commit
39e1b96d18
@ -74,8 +74,10 @@
|
|||||||
}
|
}
|
||||||
$this->mode = Daux::LIVE_MODE;
|
$this->mode = Daux::LIVE_MODE;
|
||||||
$this->host = $_SERVER['HTTP_HOST'];
|
$this->host = $_SERVER['HTTP_HOST'];
|
||||||
$this->base_url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|
//Fixes for pages within pages
|
||||||
$this->base_url = substr($this->base_url, 0, strrpos($this->base_url, '/'));
|
//$this->base_url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
|
||||||
|
$this->base_url = $_SERVER['HTTP_HOST'];
|
||||||
|
//$this->base_url = substr($this->base_url, 0, strrpos($this->base_url, '/'));
|
||||||
//adding this replace, which replaces the /index.php with nothing seems to resolve the issue with serving static content
|
//adding this replace, which replaces the /index.php with nothing seems to resolve the issue with serving static content
|
||||||
$this->base_url = str_replace("/index.php", "", $this->base_url);
|
$this->base_url = str_replace("/index.php", "", $this->base_url);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user