summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-02-07 18:07:27 +0100
committerBart Visscher <bartv@thisnet.nl>2013-02-07 18:07:27 +0100
commit20b6cb28b16fd663ea386fd6faf6c3129a97f42b (patch)
tree29b29046b25628712fb59146e8ff94d47a9f2779 /lib
parente969a78cf998a6a5607e605d65b7bf1b35259cb8 (diff)
downloadnextcloud-server-20b6cb28b16fd663ea386fd6faf6c3129a97f42b.tar.gz
nextcloud-server-20b6cb28b16fd663ea386fd6faf6c3129a97f42b.zip
Fix warning with displayname in user layout template
Diffstat (limited to 'lib')
-rw-r--r--lib/templatelayout.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index 37ece91047f..28bdca6be0a 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -19,6 +19,7 @@ class OC_TemplateLayout extends OC_Template {
}
// Add navigation entry
+ $this->assign( 'application', '', false );
$navigation = OC_App::getNavigation();
$this->assign( 'navigation', $navigation, false);
$this->assign( 'settingsnavigation', OC_App::getSettingsNavigation(), false);
@@ -28,6 +29,8 @@ class OC_TemplateLayout extends OC_Template {
break;
}
}
+ $user_displayname = OC_User::getDisplayName();
+ $this->assign( 'user_displayname', $user_displayname );
} else if ($renderas == 'guest') {
parent::__construct('core', 'layout.guest');
} else {