diff --git a/.gitignore b/.gitignore index 74dd5ca..8cf81e8 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ webhook_test_json_mail.php webhook_test_envoi_discord.php gitscord_webhook_config.json send_post_request_like_gitlab.py +payloads_examples diff --git a/gitscord_webhook.php b/gitscord_webhook.php index 9c996a6..216485d 100644 --- a/gitscord_webhook.php +++ b/gitscord_webhook.php @@ -29,7 +29,7 @@ if ($plainJSON != '') { $mhl_color = "FF7000"; // default orange color if not given } else { - $mhl_color = $configJSON['highlight_color']; + $mhl_color = $configJSON['message_highlight_color']; } $messageJSON = array(); // JSON to send to Discord if ($configJSON['bot_name'] != '') {