Skip to content

Commit

Permalink
Remove deprecated split() function. Use explode() instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
netcarver committed Feb 16, 2011
1 parent 24bde20 commit a8a2cb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gbp_l10n.php
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions l10n.php
Expand Up @@ -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;
Expand Down

0 comments on commit a8a2cb4

Please sign in to comment.