diff --git a/bitphp/src/Url.php b/bitphp/src/Url.php index f8b84cb..4b8bf4e 100644 --- a/bitphp/src/Url.php +++ b/bitphp/src/Url.php @@ -17,7 +17,7 @@ public static function base() $dirname = dirname($_SERVER['PHP_SELF']); $base_url = empty($_SERVER['HTTPS']) ? 'http://' : 'https://'; - $base_url .= $_SERVER['SERVER_NAME']; + $base_url .= $_SERVER['HTTP_HOST']; $base_url .= $dirname == '/' ? '' : $dirname; return (self::$base_url = $base_url); diff --git a/composer.json b/composer.json index ef15a0a..17ccc52 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "description": "Light PHP Framework for dummies", "keywords": ["php", "framework", "mvc", "oop", "small", "light"], "homepage": "http://bitphp.root404.com", - "version": "6.0-stable", + "version": "6.0.1-stable", "license": "GPL-2.0+", "authors": [ { @@ -22,15 +22,16 @@ "url":"https://github.com/bitphp/framework" }, "require": { - "php":">=5.4.0" + "php":">=5.4.0", + "gargron/fileupload": "^1.1" }, "autoload": { "psr-4": { - "Bitphp\\": "../bitphp/src", - "Models\\": "../app/models", - "Controllers\\": "../app/controllers", - "Views\\": "../app/views", - "Components\\": "../app/components" + "Bitphp\\": "bitphp/src", + "Models\\": "app/models", + "Controllers\\": "app/controllers", + "Views\\": "app/views", + "Components\\": "app/components" } }, "config": {