Merge pull request #227 from CatiaFerreira6/develop_fix_static

Fix that addresses latest comment in #225 for serving static assets
Cette révision appartient à :
Denis Kisselev 2014-10-25 14:42:58 -07:00
révision 671dd6a564
1 fichiers modifiés avec 5 ajouts et 3 suppressions

Voir le fichier

@ -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);
} }