fix in method PUT

This commit is contained in:
Ronald Quenta
2015-09-28 13:48:30 -04:00
parent 3a73a96f51
commit 81a608b5fb

View File

@@ -392,14 +392,9 @@ class Server implements iAuthenticate
return ""; return "";
} }
public static function loadPostEnvironment($request = null) public static function loadPostEnvironment()
{ {
$acceptLanguage = 'en'; $acceptLanguage = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
if ($request == null) {
$request = \OAuth2\Request::createFromGlobals();
$acceptLanguage = $request->headers('ACCEPT_LANGUAGE');
}
if (!defined('SYS_LANG')) { if (!defined('SYS_LANG')) {
$Translations = new \Translation; $Translations = new \Translation;
$translationsTable = $Translations->getTranslationEnvironments(); $translationsTable = $Translations->getTranslationEnvironments();