From 662af5734df955075c22c6756062ea030bfc9f41 Mon Sep 17 00:00:00 2001 From: paladox Date: Fri, 21 Dec 2018 00:03:30 +0000 Subject: [PATCH] Fix call to send_curl_request if using $wgDiscordIncomingWebhookUrl --- DiscordNotificationsCore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordNotificationsCore.php b/DiscordNotificationsCore.php index 6b2fcd0..66eebc1 100644 --- a/DiscordNotificationsCore.php +++ b/DiscordNotificationsCore.php @@ -407,7 +407,7 @@ static function push_discord_notify($message, $user, $action) else { self::send_curl_request($wgDiscordIncomingWebhookUrl, $post); for ($i = 0; $i < count($wgDiscordAdditionalIncomingWebhookUrls); ++$i) { - self::send_http_request($wgDiscordAdditionalIncomingWebhookUrls[$i], $post); + self::send_curl_request($wgDiscordAdditionalIncomingWebhookUrls[$i], $post); } } } @@ -441,4 +441,4 @@ private function getMessage($key) { return wfMessage( $key)->text(); } } -?> \ No newline at end of file +?>