Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2013-03-02 19:09:36 +0400
committerBrice Maron <brice@bmaron.net>2013-03-02 19:09:36 +0400
commit050de008b1f648db4bb1381620a6d5ca3ab8583b (patch)
tree93b1eafce448248f18dfd6f576cfdc97eafa411a /core
parentd3e88e6a8c715b13f06424ad97c284151f128353 (diff)
Avoid to display empty DisplayNames for menu and title
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 2b53cc0ae5d..c823ee6b3ac 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -2,7 +2,7 @@
<html class="ng-csp">
<head>
<title><?php p(!empty($_['application'])?$_['application'].' | ':'') ?>ownCloud
- <?php p(!empty($_['user_displayname'])?' ('.$_['user_displayname'].') ':'') ?></title>
+ <?php p(trim($_['user_displayname']) != '' ?' ('.$_['user_displayname'].') ':'') ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="apple-itunes-app" content="app-id=543672169">
<link rel="shortcut icon" href="<?php print_unescaped(image_path('', 'favicon.png')); ?>" />
@@ -34,7 +34,7 @@
<ul id="settings" class="svg">
<span id="expand">
- <span id="expandDisplayName"><?php p($_['user_displayname']) ?></span>
+ <span id="expandDisplayName"><?php p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
<img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
</span>
<div id="expanddiv">