summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoricewind1991 <icewind1991@gmail.com>2013-02-15 08:07:02 -0800
committericewind1991 <icewind1991@gmail.com>2013-02-15 08:07:02 -0800
commit425d41aaf93e1cd3a44ddc794414683e8e2c4648 (patch)
tree706d39e4e1dfc66ad1e92fe5bf56dfe105bdfa3c /lib
parentcd310add23bfa27cceef52c9ab7f4be835001909 (diff)
parentb8e2454f68f745141ff4d302413f28e3f03e95e4 (diff)
downloadnextcloud-server-425d41aaf93e1cd3a44ddc794414683e8e2c4648.tar.gz
nextcloud-server-425d41aaf93e1cd3a44ddc794414683e8e2c4648.zip
Merge pull request #1717 from owncloud/fix-warning-template
Fix strict standard warning in user template
Diffstat (limited to 'lib')
-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