summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-02-15 16:10:06 +0100
committerRobin Appelman <icewind@owncloud.com>2013-02-15 16:10:06 +0100
commitb8e2454f68f745141ff4d302413f28e3f03e95e4 (patch)
tree706d39e4e1dfc66ad1e92fe5bf56dfe105bdfa3c /lib/template.php
parentcd310add23bfa27cceef52c9ab7f4be835001909 (diff)
downloadnextcloud-server-b8e2454f68f745141ff4d302413f28e3f03e95e4.tar.gz
nextcloud-server-b8e2454f68f745141ff4d302413f28e3f03e95e4.zip
Fix strict standard warning in user template
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/template.php b/lib/template.php
index 0230d2f9343..3df5a24f946 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -415,6 +415,8 @@ class OC_Template{
$page = new OC_TemplateLayout($this->renderas);
if($this->renderas == 'user') {
$page->assign('requesttoken', $this->vars['requesttoken']);
+ $user = OC_User::getUser();
+ $page->assign('displayname', OCP\User::getDisplayName($user));
}
// Add custom headers