Skip to content

Commit

Permalink
Updating use of deprecated split() to use preg_split().
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Dec 17, 2009
1 parent c8297ff commit bbc72c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/l10n.php
Expand Up @@ -393,7 +393,7 @@ function __setLanguage($language = null) {
* @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) {
Expand Down

0 comments on commit bbc72c3

Please sign in to comment.