]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
er. right.
authorJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 04:37:59 +0000 (23:37 -0500)
committerJames Walker <walkah@walkah.net>
Fri, 26 Feb 2010 04:37:59 +0000 (23:37 -0500)
plugins/OStatus/classes/Magicsig.php

index 681aec184d0ec8672cf01342826a52abb4b54ac5..02882d19b13e1750e43e1b31c7fe7c3a55263d62 100644 (file)
@@ -90,7 +90,7 @@ class Magicsig extends Memcached_DataObject
         return parent::insert();
     }
 
-    public function generate($key_length = 512)
+    public function generate($user_id, $key_length = 512)
     {
         PEAR::pushErrorHandling(PEAR_ERROR_RETURN);
 
@@ -101,6 +101,7 @@ class Magicsig extends Memcached_DataObject
         $this->_rsa = new Crypt_RSA($params);
         PEAR::popErrorHandling();
 
+        $this->user_id = $user_id;
         $this->insert();
     }