aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.user.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/layout.user.php')
-rw-r--r--core/templates/layout.user.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index da837ce5ff2..a6cc4ddc9b6 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -18,10 +18,10 @@ $getUserAvatar = static function (int $size) use ($_): string {
<meta charset="utf-8">
<title>
<?php
- p(!empty($_['pageTitle'])?$_['pageTitle'].' - ':'');
-p(!empty($_['application'])?$_['application'].' - ':'');
-p($theme->getTitle());
-?>
+ p(!empty($_['pageTitle']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'].' - ' : '');
+ p(!empty($_['application']) ? $_['application'].' - ' : '');
+ p($theme->getTitle());
+ ?>
</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />