Fix warning with displayname in user layout template
This commit is contained in:
parent
e969a78cf9
commit
20b6cb28b1
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud <?php echo OC_User::getDisplayName()?' ('.OC_Util::sanitizeHTML(OC_User::getDisplayName()).') ':'' ?></title>
|
<title><?php echo !empty($_['application'])?$_['application'].' | ':'' ?>ownCloud <?php echo !empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'' ?></title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="apple-itunes-app" content="app-id=543672169">
|
<meta name="apple-itunes-app" content="app-id=543672169">
|
||||||
<link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
|
<link rel="shortcut icon" href="<?php echo image_path('', 'favicon.png'); ?>" /><link rel="apple-touch-icon-precomposed" href="<?php echo image_path('', 'favicon-touch.png'); ?>" />
|
||||||
|
|
|
@ -19,6 +19,7 @@ class OC_TemplateLayout extends OC_Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add navigation entry
|
// Add navigation entry
|
||||||
|
$this->assign( 'application', '', false );
|
||||||
$navigation = OC_App::getNavigation();
|
$navigation = OC_App::getNavigation();
|
||||||
$this->assign( 'navigation', $navigation, false);
|
$this->assign( 'navigation', $navigation, false);
|
||||||
$this->assign( 'settingsnavigation', OC_App::getSettingsNavigation(), false);
|
$this->assign( 'settingsnavigation', OC_App::getSettingsNavigation(), false);
|
||||||
|
@ -28,6 +29,8 @@ class OC_TemplateLayout extends OC_Template {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$user_displayname = OC_User::getDisplayName();
|
||||||
|
$this->assign( 'user_displayname', $user_displayname );
|
||||||
} else if ($renderas == 'guest') {
|
} else if ($renderas == 'guest') {
|
||||||
parent::__construct('core', 'layout.guest');
|
parent::__construct('core', 'layout.guest');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue