Fixing Gitlab support
This commit is contained in:
parent
08af82e84b
commit
a1f47ddfe1
|
@ -175,7 +175,8 @@ class WebhookController extends \PHPCI\Controller
|
|||
*/
|
||||
public function gitlab($project)
|
||||
{
|
||||
$payload = json_decode($this->getParam('payload'), true);
|
||||
$payloadString = file_get_contents("php://input");
|
||||
$payload = json_decode($payloadString, true);
|
||||
|
||||
try {
|
||||
|
||||
|
|
|
@ -221,10 +221,12 @@ class ProjectBase extends Model
|
|||
*/
|
||||
public function getAccessInformation($key = null)
|
||||
{
|
||||
$data = unserialize($this->data['access_information']);
|
||||
|
||||
if (is_null($key)) {
|
||||
$rtn = $this->data['access_information'];
|
||||
} else if (isset($this->data['access_information'][$key])) {
|
||||
$rtn = $this->data['access_information'][$key];
|
||||
$rtn = $data;
|
||||
} else if (isset($data[$key])) {
|
||||
$rtn = $data[$key];
|
||||
} else {
|
||||
$rtn = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue