Skip to content

Commit

Permalink
PHP notice fixes for nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
grinry committed May 26, 2016
1 parent bbe97a7 commit 2a7faa2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* @author Rytis Grincevicius <rytis@kiberzauras.com>
* @link http://www.github.com/kiberzauras/laravel.multilanguage
* @version 2.0.2
* @version 2.0.4
* @license MIT
*/
namespace Kiberzauras\MultiLanguage;
Expand Down Expand Up @@ -33,15 +33,14 @@ public static function capture()
elseif (array_key_exists('HTTP_X_REWRITE_URL', $_SERVER))
self::parseServerVars('HTTP_X_REWRITE_URL', $params);

elseif (!empty($_SERVER['UNENCODED_URL']) && $_SERVER['IIS_WasUrlRewritten'] == 1)
elseif (array_key_exists('UNENCODED_URL', $_SERVER) && $_SERVER['IIS_WasUrlRewritten'] == 1)
self::parseServerVars('UNENCODED_URL', $params);

elseif ($_SERVER['REQUEST_URI'])
elseif (array_key_exists('REQUEST_URI', $_SERVER))
self::parseServerVars('REQUEST_URI', $params);

elseif ($_SERVER['ORIG_PATH_INFO'])
elseif (array_key_exists('ORIG_PATH_INFO', $_SERVER))
self::parseServerVars('ORIG_PATH_INFO', $params);

}
defined('Language') || define('Language', !empty($params->default) ? $params->default : 'en');
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Multilanguage support for Laravel 5.1+ routes",
"keywords": ["laravel", "multilanguage", "kiberzauras"],
"license": "MIT",
"time": "2016-03-19",
"time": "2016-05-26",
"authors": [
{
"name": "Rytis Grincevicius",
Expand Down

0 comments on commit 2a7faa2

Please sign in to comment.