diff --git a/SourceBitBucket/SourceBitBucket.php b/SourceBitBucket/SourceBitBucket.php index 9bd2e70..c5b7d94 100755 --- a/SourceBitBucket/SourceBitBucket.php +++ b/SourceBitBucket/SourceBitBucket.php @@ -186,7 +186,7 @@ $t_commits[] = $t_commit['id']; } - $t_refData = split( '/', $p_data['ref'] ); + $t_refData = explode( '/', $p_data['ref'] ); $t_branch = $t_refData[2]; return $this->import_commits( $p_repo, $t_commits, $t_branch ); diff --git a/SourceCgit/SourceCgit.php b/SourceCgit/SourceCgit.php index 12ecf2e..f6c3548 100644 --- a/SourceCgit/SourceCgit.php +++ b/SourceCgit/SourceCgit.php @@ -129,8 +129,8 @@ # Once it reaches here it is decoded. Hence we split by a space # were as the curl command uses a '+' character instead. # i.e. DATA=`echo $INPUT | sed -e 's/ /+/g'` - list ( , $t_commit_id, $t_branch) = split(' ', $p_data); - list ( , , $t_branch) = split('/', $t_branch); + list( , $t_commit_id, $t_branch ) = explode( ' ', $p_data ); + list( , , $t_branch ) = explode( '/', $t_branch ); $master_branches = map( 'trim', explode( ',', $p_repo->info['master_branch'])); if (!in_array($t_branch,$master_branches) ) { diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php index 04b86e3..749407a 100755 --- a/SourceGithub/SourceGithub.php +++ b/SourceGithub/SourceGithub.php @@ -262,7 +262,7 @@ $t_commits[] = $t_commit['id']; } - $t_refData = split('/',$p_data['ref']); + $t_refData = explode( '/',$p_data['ref'] ); $t_branch = $t_refData[2]; return $this->import_commits( $p_repo, $t_commits, $t_branch ); diff --git a/SourceHgWeb/SourceHgWeb.php b/SourceHgWeb/SourceHgWeb.php index f1084a1..0088278 100644 --- a/SourceHgWeb/SourceHgWeb.php +++ b/SourceHgWeb/SourceHgWeb.php @@ -129,8 +129,8 @@ # Once it reaches here it is decoded. Hence we split by a space # were as the curl command uses a '+' character instead. # i.e. DATA=`echo $INPUT | sed -e 's/ /+/g'` - list ( , $t_commit_id, $t_branch ) = split( ' ', $p_data ); - list ( , , $t_branch ) = split( '/', $t_branch ); + list ( , $t_commit_id, $t_branch ) = explode( ' ', $p_data ); + list ( , , $t_branch ) = explode( '/', $t_branch ); return $this->import_commits($p_repo, null, $t_commit_id, $t_branch); }