From 20b6cb28b16fd663ea386fd6faf6c3129a97f42b Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 7 Feb 2013 18:07:27 +0100 Subject: Fix warning with displayname in user layout template --- lib/templatelayout.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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 { -- cgit v1.2.3