Skip to content

Commit eac043a

Browse files
committed
feat: Update language negotiator
1 parent d5adeff commit eac043a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/HTTP/Negotiate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespace CodeIgniter\HTTP;
1515

1616
use CodeIgniter\HTTP\Exceptions\HTTPException;
17+
use Config\Feature;
1718

1819
/**
1920
* Class Negotiate
@@ -127,7 +128,7 @@ public function encoding(array $supported = []): string
127128
*/
128129
public function language(array $supported): string
129130
{
130-
return $this->getBestMatch($supported, $this->request->getHeaderLine('accept-language'), false, false, true);
131+
return $this->getBestMatch($supported, $this->request->getHeaderLine('accept-language'), false, false, config(Feature::class)->simpleNegotiateLocale);
131132
}
132133

133134
// --------------------------------------------------------------------

0 commit comments

Comments
 (0)