diff options
author | tailor <cygnus@janrain.com> | 2006-01-13 00:41:37 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-01-13 00:41:37 +0000 |
commit | e23d79a55f3944bcfe997ef02d5d79a3e8a1b17e (patch) | |
tree | f3ef13149c614359832b163c7330d97b5c4d8917 /Net | |
parent | 73f023540cf89d6dd2b52156c6dda37c1313de89 (diff) | |
download | php-openid-e23d79a55f3944bcfe997ef02d5d79a3e8a1b17e.zip php-openid-e23d79a55f3944bcfe997ef02d5d79a3e8a1b17e.tar.gz php-openid-e23d79a55f3944bcfe997ef02d5d79a3e8a1b17e.tar.bz2 |
[project @ Fixed some small bugs]
Diffstat (limited to 'Net')
-rw-r--r-- | Net/OpenID/Association.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Net/OpenID/Association.php b/Net/OpenID/Association.php index 0bd3665..f718a14 100644 --- a/Net/OpenID/Association.php +++ b/Net/OpenID/Association.php @@ -67,11 +67,12 @@ class Net_OpenID_Association { * at this time is C{'HMAC-SHA1'}, but new types may be * defined in the future. */ - function fromExpiresIn($cls, $expires_in, $handle, $secret, $assoc_type) + function fromExpiresIn($expires_in, $handle, $secret, $assoc_type) { $issued = time(); $lifetime = $expires_in; - return $class_name($handle, $secret, $issued, $lifetime, $assoc_type); + return new Net_OpenID_Association($handle, $secret, + $issued, $lifetime, $assoc_type); } /** @@ -233,7 +234,7 @@ class Net_OpenID_Association { function sign($pairs) { assert($this->assoc_type == 'HMAC-SHA1'); - $kv = Net_OpenID_arrayToKV($pairs); + $kv = Net_OpenID_KVForm::arrayToKV($pairs); return Net_OpenID_hmacSha1($this->secret, $kv); } |