Skip to content

Commit

Permalink
Merge pull request #22 from paladox/patch-1
Browse files Browse the repository at this point in the history
Fix call to send_curl_request if using $wgDiscordIncomingWebhookUrl
  • Loading branch information
kulttuuri authored Dec 21, 2018
2 parents 3c9d8f0 + 662af57 commit bcf22ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DiscordNotificationsCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down Expand Up @@ -441,4 +441,4 @@ private function getMessage($key) {
return wfMessage( $key)->text();
}
}
?>
?>

0 comments on commit bcf22ce

Please sign in to comment.