Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
- Version is now 1.07.
- Translations now use general wiki language instead of users own specific language.
- Should no longer print out any curl messages to output.
- Updated license version year to current year.
  • Loading branch information
kulttuuri committed Feb 11, 2019
1 parent ef394ca commit 469d72b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions DiscordNotificationsCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,12 @@ private static function send_curl_request($url, $postData) {
curl_setopt($h, CURLOPT_URL, $url);
curl_setopt($h, CURLOPT_POST, 1);
curl_setopt($h, CURLOPT_POSTFIELDS, $postData);
curl_setopt($h, CURLOPT_RETURNTRANSFER, true);
// I know this shouldn't be done, but because it wouldn't otherwise work because of SSL...
curl_setopt ($h, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt ($h, CURLOPT_SSL_VERIFYPEER, 0);
// ... Aaand execute the curl script!
curl_exec($h);
$curl_output = curl_exec($h);
curl_close($h);
}

Expand All @@ -438,7 +439,7 @@ private static function send_http_request($url, $postData) {
}

private static function getMessage($key) {
return wfMessage( $key)->text();
return wfMessage( $key)->inContentLanguage()->text();
}
}
?>
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT license

Copyright (C) 2017 Aleksi Postari
Copyright (C) 2019 Aleksi Postari

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Discord Notifications",
"version": "1.0.6",
"version": "1.0.7",
"author": "Aleksi Postari",
"url": "https://github.com/kulttuuri/discord_mediawiki",
"description": "Sends Discord notifications for selected actions that have occurred in your MediaWiki sites.",
Expand Down

0 comments on commit 469d72b

Please sign in to comment.