]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove unnecessary Profile::pkeyGet
authorCraig Andrews <candrews@integralblue.com>
Tue, 15 Sep 2009 21:08:26 +0000 (17:08 -0400)
committerCraig Andrews <candrews@integralblue.com>
Tue, 15 Sep 2009 21:08:26 +0000 (17:08 -0400)
Thanks for the info, Evan.

classes/Profile.php
plugins/Autocomplete/autocomplete.php

index c4fb3a5439f002a8193ec00a87188ce6f0eb0374..6ad0e7a3a3b3f3884fbe221466cb034938550551 100644 (file)
@@ -47,11 +47,6 @@ class Profile extends Memcached_DataObject
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
 
-    function &pkeyGet($kv)
-    {
-        return Memcached_DataObject::pkeyGet('Profile', $kv);
-    }
-
     function getAvatar($width, $height=null)
     {
         if (is_null($height)) {
index 96d54af8d1d40a8f91d9a4c0ffc50b12b43af29b..4379a86f28c64470d4f2b21b587e5334e56d394c 100644 (file)
@@ -62,7 +62,7 @@ class AutocompleteAction extends Action
             $user->whereAdd('nickname like \'' . trim($user->escape($q), '\'') . '%\'');
             $user->find();
             while($user->fetch()) {
-                $profile = Profile::pkeyGet(array('id' => $user->id));
+                $profile = Profile::staticGet($user->id);
                 $this->results[]=array('nickname' => $user->nickname, 'fullname'=> $profile->fullname, 'type'=>'user');
             }
         }