get colors from getColorState function (#10955)

This commit is contained in:
SourceDoctor
2019-12-27 10:57:29 +01:00
committed by Jellyfrog
parent 60f33f79b6
commit b125dd1eae

View File

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