mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating use of deprecated split() to use preg_split().
This commit is contained in:
parent
c8297ff283
commit
bbc72c3703
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class L10n extends Object {
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function __autoLanguage() {
|
function __autoLanguage() {
|
||||||
$_detectableLanguages = split('[,;]', env('HTTP_ACCEPT_LANGUAGE'));
|
$_detectableLanguages = preg_split('/[,;]/', env('HTTP_ACCEPT_LANGUAGE'));
|
||||||
foreach ($_detectableLanguages as $key => $langKey) {
|
foreach ($_detectableLanguages as $key => $langKey) {
|
||||||
$langKey = strtolower($langKey);
|
$langKey = strtolower($langKey);
|
||||||
if (strpos($langKey, '_') !== false) {
|
if (strpos($langKey, '_') !== false) {
|
||||||
|
|
Loading…
Reference in a new issue