Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #55 from tomcastleman/patch-1
Browse files Browse the repository at this point in the history
OAuthSimple PHP7 compatibility
  • Loading branch information
ronanq committed Feb 2, 2016
2 parents 7b6a4a9 + 550ef0c commit d0c2845
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/OAuthSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class OAuthSimple {
* @param api_key {string} The API Key (sometimes referred to as the consumer key) This value is usually supplied by the site you wish to use.
* @param shared_secret (string) The shared secret. This value is also usually provided by the site you wish to use.
*/
function OAuthSimple ($APIKey = "",$sharedSecret=""){
public function __construct ($APIKey = "",$sharedSecret=""){
if (!empty($APIKey))
$this->_secrets{'consumer_key'}=$APIKey;
if (!empty($sharedSecret))
Expand Down Expand Up @@ -466,4 +466,4 @@ function _generateSignature () {
}
}
}
?>
?>

0 comments on commit d0c2845

Please sign in to comment.