summaryrefslogtreecommitdiffstats
path: root/lib/templatelayout.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2013-03-02 16:09:36 +0100
committerBrice Maron <brice@bmaron.net>2013-03-02 16:09:36 +0100
commit050de008b1f648db4bb1381620a6d5ca3ab8583b (patch)
tree93b1eafce448248f18dfd6f576cfdc97eafa411a /lib/templatelayout.php
parentd3e88e6a8c715b13f06424ad97c284151f128353 (diff)
downloadnextcloud-server-050de008b1f648db4bb1381620a6d5ca3ab8583b.tar.gz
nextcloud-server-050de008b1f648db4bb1381620a6d5ca3ab8583b.zip
Avoid to display empty DisplayNames for menu and title
Diffstat (limited to 'lib/templatelayout.php')
-rw-r--r--lib/templatelayout.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index 3d824cdca8f..29f120a6041 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -31,6 +31,7 @@ class OC_TemplateLayout extends OC_Template {
}
$user_displayname = OC_User::getDisplayName();
$this->assign( 'user_displayname', $user_displayname );
+ $this->assign( 'user_uid', OC_User::getUser() );
} else if ($renderas == 'guest' || $renderas == 'error') {
parent::__construct('core', 'layout.guest');
} else {