From a606e8d944f7c2754f00e9c50804b8c2beedc986 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Fri, 25 Jan 2013 17:40:23 +0100 Subject: use display name to show share_width and owner information --- lib/public/share.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib') diff --git a/lib/public/share.php b/lib/public/share.php index cda583aa073..e1d77e652d5 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -946,6 +946,15 @@ class Share { continue; } } + + // Add display names to result + if ( isset($row['share_with']) && $row['share_with'] != '') { + $row['share_with_displayname'] = \OCP\User::getDisplayName($row['share_with']); + } + if ( isset($row['uid_owner']) && $row['uid_owner'] != '') { + $row['displayname_owner'] = \OCP\User::getDisplayName($row['uid_owner']); + } + $items[$row['id']] = $row; } if (!empty($items)) { -- cgit v1.2.3