diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-30 18:35:53 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-30 18:35:53 +0100 |
commit | 228a181d48f27123a97c612cd0f686d92c05a235 (patch) | |
tree | 317e9dc97f6ba11be45b9f62f8fb4b38b3c36bf1 /core/templates | |
parent | 284e69073782d634dbee9368a81607ae2afebc7b (diff) | |
download | nextcloud-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.php | 2 |
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;"'; ?>> |