From e23d79a55f3944bcfe997ef02d5d79a3e8a1b17e Mon Sep 17 00:00:00 2001 From: tailor Date: Fri, 13 Jan 2006 00:41:37 +0000 Subject: [project @ Fixed some small bugs] --- Net/OpenID/Association.php | 7 ++++--- 1 file 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); } -- cgit v1.1