Skip to content

Commit

Permalink
update file src/Application.php
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Dec 26, 2023
1 parent cf16583 commit 119088a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,7 @@ public function setTimeZone(string $timezone): void
*/
public function getLocale()
{
if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
return '';
}
if (!isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) return '';

if (!extension_loaded('intl')) {
throw new Exception('The "intl" extension is not enabled on this server');
Expand Down

0 comments on commit 119088a

Please sign in to comment.