summaryrefslogtreecommitdiff
path: root/app/Model/UserModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-24 13:29:24 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-24 13:29:24 -0400
commitbe22f0619e25b15c8c3d002cf1f190aa9976bc71 (patch)
treed2007a08747154830bf2df202f4321fe7d0e8ec9 /app/Model/UserModel.php
parenta6d22bf2715347d4f340376efee75dc57176c8b6 (diff)
Remove method UserModel::getFullname()
Diffstat (limited to 'app/Model/UserModel.php')
-rw-r--r--app/Model/UserModel.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/Model/UserModel.php b/app/Model/UserModel.php
index f7a051c5..56b1a960 100644
--- a/app/Model/UserModel.php
+++ b/app/Model/UserModel.php
@@ -65,17 +65,6 @@ class UserModel extends Base
}
/**
- * 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
*
* @access public
@@ -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);