summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-27 14:33:35 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-27 19:07:33 +0100
commit599778b153f17fe1e749d2f10b47e32ba1eedb06 (patch)
tree76cb1adde663e790cb453eec382804d944a3d33b /apps
parente83f428c34788e489b8b6e985f98110751deb0e0 (diff)
downloadnextcloud-server-599778b153f17fe1e749d2f10b47e32ba1eedb06.tar.gz
nextcloud-server-599778b153f17fe1e749d2f10b47e32ba1eedb06.zip
Files External: show display names instead of internal user names in Settings UI
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/settings.php1
-rw-r--r--apps/files_external/templates/settings.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php
index 1a39affe2e6..31183409e39 100644
--- a/apps/files_external/settings.php
+++ b/apps/files_external/settings.php
@@ -32,6 +32,7 @@ $tmpl->assign('mounts', OC_Mount_Config::getSystemMountPoints());
$tmpl->assign('backends', OC_Mount_Config::getBackends());
$tmpl->assign('groups', OC_Group::getGroups());
$tmpl->assign('users', OCP\User::getUsers());
+$tmpl->assign('userDisplayNames', OC_User::getDisplayNames());
$tmpl->assign('dependencies', OC_Mount_Config::checkDependencies());
$tmpl->assign('allowUserMounting', OCP\Config::getAppValue('files_external', 'allow_user_mounting', 'yes'));
return $tmpl->fetchPage();
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index b3b94a1dafd..b3c08e21225 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -102,7 +102,7 @@
<option value="<?php p($user); ?>"
<?php if (isset($mount['applicable']['users']) && in_array($user, $mount['applicable']['users'])): ?>
selected="selected"
- <?php endif; ?>><?php p($user); ?></option>
+ <?php endif; ?>><?php p($_['userDisplayNames'][$user]); ?></option>
<?php endforeach; ?>
</optgroup>
</select>