get colors from getColorState function (#10956)

This commit is contained in:
SourceDoctor
2019-12-27 10:56:56 +01:00
committed by Jellyfrog
parent 07ef8e2f67
commit 60f33f79b6

View File

@@ -45,7 +45,7 @@ class Mattermost extends Transport
$host = $api['url'];
$curl = curl_init();
$mattermost_msg = strip_tags($obj['msg']);
$color = ($obj['state'] == 0 ? '#00FF00' : '#FF0000');
$color = self::getColorForState($obj['state']);
$data = [
'attachments' => [
0 => [