]> source.dussan.org Git - nextcloud-server.git/commitdiff
use new user function to display real name if available, username still fallback
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 30 Jan 2013 17:35:53 +0000 (18:35 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 30 Jan 2013 17:35:53 +0000 (18:35 +0100)
core/templates/layout.user.php

index 88ef6d04f74007ae4d393692a25201bcf3ed7d6b..8cdbb48d36b4c2203d6cb4819db0a5c4762fdf0e 100644 (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;"'; ?>>