From e56164a229787201835ea0a5c2ea3d0993a8b444 Mon Sep 17 00:00:00 2001 From: elkmaennchen Date: Wed, 28 Oct 2020 13:57:35 +0100 Subject: [PATCH] bug : color was always dark --- .gitignore | 1 + gitscord_webhook.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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'] != '') {