Merge branch 'develop' of git+ssh://git.sihnon.net/home/git/public/sihnon-php-lib into develop
This commit is contained in:
@@ -23,7 +23,8 @@ class SihnonFramework_Main {
|
|||||||
protected $base_uri;
|
protected $base_uri;
|
||||||
|
|
||||||
protected function __construct() {
|
protected function __construct() {
|
||||||
$this->base_uri = dirname($_SERVER['SCRIPT_NAME']) . '/';
|
$dirname = dirname($_SERVER['SCRIPT_NAME']);
|
||||||
|
$this->base_uri = $dirname == '/' ? '/' : $dirname . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function init() {
|
protected function init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user