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

@@ -50,7 +50,8 @@ class UserHelper extends Base
*/
public function getFullname(array $user = array())
{
return $this->userModel->getFullname(empty($user) ? $this->userSession->getAll() : $user);
$user = empty($user) ? $this->userSession->getAll() : $user;
return $user['name'] ?: $user['username'];
}
/**