summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-25 13:00:17 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-25 13:00:17 +0100
commitb4291f1e8e2326f5f1cbd97fa130d547f949b62d (patch)
tree49115d1ea0c90119213b4231f5183004b8c6dab1 /lib/public
parent64e853394c120888a7555901a52c5868f33aef3c (diff)
downloadnextcloud-server-b4291f1e8e2326f5f1cbd97fa130d547f949b62d.tar.gz
nextcloud-server-b4291f1e8e2326f5f1cbd97fa130d547f949b62d.zip
allow to get the display name from an abitrary user
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/user.php b/lib/public/user.php
index a93e3a674a8..411098ed5aa 100644
--- a/lib/public/user.php
+++ b/lib/public/user.php
@@ -56,8 +56,8 @@ class User {
* @brief get the user display name of the user currently logged in.
* @return string display name
*/
- public static function getDisplayName() {
- return \OC_USER::getDisplayName();
+ public static function getDisplayName($user=null) {
+ return \OC_USER::getDisplayName($user);
}
/**