Update Request.php

This commit is contained in:
Dennis Eichhorn 2019-11-19 17:49:14 +01:00 committed by GitHub
parent 181467beaf
commit 709e9d2d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,8 +109,7 @@ final class Request extends RequestAbstract
*/
private function init() : void
{
$lang = \explode('_', $_SERVER['LANG'] ?? '');
$this->header->getL11n()->setLanguage($lang[0] === '' ? 'en' : $lang[0]);
$this->header->getL11n()->setLanguage('en');
}
/**