Remove method UserModel::getFullname()

This commit is contained in:
Frederic Guillot
2016-07-24 13:29:24 -04:00
parent a6d22bf271
commit be22f0619e
5 changed files with 402 additions and 413 deletions

View File

@@ -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);