use new user function to display real name if available, username still fallback

This commit is contained in:
Jan-Christoph Borchardt 2013-01-30 18:35:53 +01:00
parent 284e690737
commit 228a181d48
1 changed files with 1 additions and 1 deletions

View File

@ -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;"'; ?>>