Merge branch 'develop' of git+ssh://git.sihnon.net/home/git/public/sihnon-php-lib into develop

This commit is contained in:
2011-12-31 01:17:37 +00:00

View File

@@ -23,7 +23,8 @@ class SihnonFramework_Main {
protected $base_uri;
protected function __construct() {
$this->base_uri = dirname($_SERVER['SCRIPT_NAME']) . '/';
$dirname = dirname($_SERVER['SCRIPT_NAME']);
$this->base_uri = $dirname == '/' ? '/' : $dirname . '/';
}
protected function init() {