From bbc72c3703f8097b18ed00c9435735a96f7f0071 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 16 Dec 2009 21:08:15 -0500 Subject: [PATCH] Updating use of deprecated split() to use preg_split(). --- cake/libs/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/l10n.php b/cake/libs/l10n.php index 95f66c257..7000a808b 100644 --- a/cake/libs/l10n.php +++ b/cake/libs/l10n.php @@ -393,7 +393,7 @@ class L10n extends Object { * @access private */ function __autoLanguage() { - $_detectableLanguages = split('[,;]', env('HTTP_ACCEPT_LANGUAGE')); + $_detectableLanguages = preg_split('/[,;]/', env('HTTP_ACCEPT_LANGUAGE')); foreach ($_detectableLanguages as $key => $langKey) { $langKey = strtolower($langKey); if (strpos($langKey, '_') !== false) {