Skip to content

Commit

Permalink
Some nginx compatibilities was fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo authored and eduardo committed Apr 3, 2016
1 parent f60ad68 commit 8cdb6b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bitphp/src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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": {
Expand Down

0 comments on commit 8cdb6b8

Please sign in to comment.