Permalink
Browse files

Updating use of deprecated split() to use preg_split().

  • Loading branch information...
1 parent c8297ff commit bbc72c3703f8097b18ed00c9435735a96f7f0071 @markstory markstory committed Dec 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/l10n.php
View
2 cake/libs/l10n.php
@@ -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) {

0 comments on commit bbc72c3

Please sign in to comment.