Skip to content

Commit e7532b4

Browse files
sergstetsukdregad
authored andcommitted
Cgit: correct function map() to array_map()
Caused error: Call to undefined function map() Signed-off-by: Damien Regad <[email protected]> Bumped plugin version and updated changelog Fixes #306
1 parent 9270488 commit e7532b4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

SourceCgit/SourceCgit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class SourceCgitPlugin extends MantisSourceGitBasePlugin {
1818

19-
const PLUGIN_VERSION = '1.1.1';
19+
const PLUGIN_VERSION = '1.1.2';
2020
const FRAMEWORK_VERSION_REQUIRED = '1.5.0';
2121

2222
public function register() {
@@ -150,7 +150,7 @@ public function commit( $p_repo, $p_data ) {
150150
# i.e. DATA=`echo $INPUT | sed -e 's/ /+/g'`
151151
list( , $t_commit_id, $t_branch ) = explode( ' ', $p_data );
152152
list( , , $t_branch ) = explode( '/', $t_branch );
153-
$master_branches = map( 'trim', explode( ',', $p_repo->info['master_branch']));
153+
$master_branches = array_map( 'trim', explode( ',', $p_repo->info['master_branch'] ) );
154154
if (!in_array($t_branch,$master_branches) )
155155
{
156156
return;

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ specification.
1010

1111
# Releases for MantisBT 1.3
1212

13+
## [Unreleased 1.x]
14+
15+
### Fixed
16+
17+
- CGit: replace invalid function map() by array_map()
18+
[#306](https://github.com/mantisbt-plugins/source-integration/issues/306)
19+
1320
## [1.6.0] - 2019-01-31
1421

1522
### Changed

0 commit comments

Comments
 (0)