Remove method UserModel::getFullname()
This commit is contained in:
@@ -64,17 +64,6 @@ class UserModel extends Base
|
||||
return $this->db->table(self::TABLE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the full name
|
||||
*
|
||||
* @param array $user User properties
|
||||
* @return string
|
||||
*/
|
||||
public function getFullname(array $user)
|
||||
{
|
||||
return $user['name'] ?: $user['username'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true is the given user id is administrator
|
||||
*
|
||||
@@ -230,7 +219,7 @@ class UserModel extends Base
|
||||
$result = array();
|
||||
|
||||
foreach ($users as $user) {
|
||||
$result[$user['id']] = $this->getFullname($user);
|
||||
$result[$user['id']] = $this->helper->user->getFullname($user);
|
||||
}
|
||||
|
||||
asort($result);
|
||||
|
||||
Reference in New Issue
Block a user