summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-30 18:35:53 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-01-30 18:35:53 +0100
commit228a181d48f27123a97c612cd0f686d92c05a235 (patch)
tree317e9dc97f6ba11be45b9f62f8fb4b38b3c36bf1 /core/templates
parent284e69073782d634dbee9368a81607ae2afebc7b (diff)
downloadnextcloud-server-228a181d48f27123a97c612cd0f686d92c05a235.tar.gz
nextcloud-server-228a181d48f27123a97c612cd0f686d92c05a235.zip
use new user function to display real name if available, username still fallback
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 88ef6d04f74..8cdbb48d36b 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -32,7 +32,7 @@
<ul id="settings" class="svg">
<span id="expand">
- <?php echo OC_User::getUser()?OC_User::getUser():'' ?>
+ <?php echo OCP\User::getDisplayName($user=null)?OCP\User::getDisplayName($user=null):(OC_User::getUser()?OC_User::getUser():'') ?>
<img class="svg" src="<?php echo image_path('', 'actions/caret.svg'); ?>" />
</span>
<div id="expanddiv" <?php if($_['bodyid'] == 'body-user') echo 'style="display:none;"'; ?>>