Remove unnecessary Profile::pkeyGet
Thanks for the info, Evan.
This commit is contained in:
parent
80ba0603c6
commit
4a97ad9efe
|
@ -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)) {
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user