aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/cache.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-16 12:07:02 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-16 12:07:02 +0200
commit658828867ca9379abdb411ec188a9d7a45794dd1 (patch)
treea93d317609c5031741c2049137d33e1e21eed808 /apps/files_sharing/lib/cache.php
parent7d8a8e78fa7afad6a004341b67cab19f7a4eccf8 (diff)
downloadnextcloud-server-658828867ca9379abdb411ec188a9d7a45794dd1.tar.gz
nextcloud-server-658828867ca9379abdb411ec188a9d7a45794dd1.zip
Correctly return the owner display name for children of shares
Diffstat (limited to 'apps/files_sharing/lib/cache.php')
-rw-r--r--apps/files_sharing/lib/cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php
index 6bc9e131949..209aa49dfa4 100644
--- a/apps/files_sharing/lib/cache.php
+++ b/apps/files_sharing/lib/cache.php
@@ -162,7 +162,7 @@ class Shared_Cache extends Cache {
foreach ($sourceFolderContent as $key => $c) {
$sourceFolderContent[$key]['path'] = $dir . $c['name'];
$sourceFolderContent[$key]['uid_owner'] = $parent['uid_owner'];
- $sourceFolderContent[$key]['displayname_owner'] = $parent['uid_owner'];
+ $sourceFolderContent[$key]['displayname_owner'] = \OC_User::getDisplayName($parent['uid_owner']);
$sourceFolderContent[$key]['permissions'] = $sourceFolderContent[$key]['permissions'] & $this->storage->getPermissions($dir . $c['name']);
}