Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #62 - curl errors with PHP7.0 #63

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CRM/Sparkpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static private function _getHandle() {
// Reset HTTP request method to GET as it might have been changed to POST or DELETE
// cf. https://stackoverflow.com/questions/4163865/how-to-reset-curlopt-customrequest
curl_setopt(self::$ch, CURLOPT_HTTPGET, TRUE);
curl_setopt(self::$ch, CURLOPT_CUSTOMREQUEST, NULL);
curl_setopt(self::$ch, CURLOPT_CUSTOMREQUEST, "GET");
}
return self::$ch;
}
Expand Down
5 changes: 3 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
<author>Cividesk</author>
<email>info@cividesk.com</email>
</maintainer>
<releaseDate>2016-05-14</releaseDate>
<version>1.2</version>
<releaseDate>2018-07-30</releaseDate>
<version>1.3</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.4</ver>
<ver>4.6</ver>
<ver>4.7</ver>
<ver>5.0</ver>
</compatibility>
<comments>As always, read the documentation first! Once the extension is enabled, go to Administer &gt;&gt; System Settings &gt;&gt; Outbound Email (SparkPost) to configure and send a test email.</comments>
<civix>
Expand Down