diff options
-rw-r--r-- | apps/files_external/settings.php | 1 | ||||
-rw-r--r-- | apps/files_external/templates/settings.php | 2 |
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> |