Skip to content

Commit d0c2845

Browse files
committed
Merge pull request #55 from tomcastleman/patch-1
OAuthSimple PHP7 compatibility
2 parents 7b6a4a9 + 550ef0c commit d0c2845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/OAuthSimple.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class OAuthSimple {
9090
* @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.
9191
* @param shared_secret (string) The shared secret. This value is also usually provided by the site you wish to use.
9292
*/
93-
function OAuthSimple ($APIKey = "",$sharedSecret=""){
93+
public function __construct ($APIKey = "",$sharedSecret=""){
9494
if (!empty($APIKey))
9595
$this->_secrets{'consumer_key'}=$APIKey;
9696
if (!empty($sharedSecret))
@@ -466,4 +466,4 @@ function _generateSignature () {
466466
}
467467
}
468468
}
469-
?>
469+
?>

0 commit comments

Comments
 (0)