Skip to content
Browse files

Remove deprecated split() function. Use explode() instead.

  • Loading branch information...
1 parent 24bde20 commit a8a2cb4a2282b04eecd98c24cdfb5a39da716f39 @netcarver netcarver committed Feb 16, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 gbp_l10n.php
  2. +2 −2 l10n.php
View
4 gbp_l10n.php
@@ -420,12 +420,12 @@ function _l10n_process_url()
$req_lang = (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) ? $_SERVER['HTTP_ACCEPT_LANGUAGE'] : '' ;
if( isset( $req_lang ) and !empty( $req_lang ) )
{
- $chunks = split( ',' , $req_lang );
+ $chunks = explode( ',' , $req_lang );
if( count( $chunks ) )
{
foreach( $chunks as $chunk )
{
- $info = split( ';' , $chunk );
+ $info = explode( ';' , $chunk );
if( false === $info )
{
$info[] = $chunk;
View
4 l10n.php
@@ -248,12 +248,12 @@ function _l10n_process_url( $use_get_params=false )
if( isset( $req_lang ) and !empty( $req_lang ) )
{
- $chunks = split( ',' , $req_lang );
+ $chunks = explode( ',' , $req_lang );
if( count( $chunks ) )
{
foreach( $chunks as $chunk )
{
- $info = split( ';' , $chunk );
+ $info = explode( ';' , $chunk );
if( false === $info )
{
$info[] = $chunk;

0 comments on commit a8a2cb4

Please sign in to comment.
Something went wrong with that request. Please try again.