diff options
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.guest.php | 4 | ||||
-rw-r--r-- | core/templates/layout.public.php | 6 | ||||
-rw-r--r-- | core/templates/layout.user.php | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index 5ebada92934..f62fb02eca2 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -9,8 +9,8 @@ <title> <?php p(!empty($_['pageTitle']) ? $_['pageTitle'] . ' – ' : ''); -p($theme->getTitle()); -?> + p($theme->getTitle()); + ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <?php if ($theme->getiTunesAppId() !== '') { ?> diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php index 81d11adffb5..18b86d1c904 100644 --- a/core/templates/layout.public.php +++ b/core/templates/layout.public.php @@ -4,9 +4,9 @@ <meta charset="utf-8"> <title> <?php - p(!empty($_['application'])?$_['application'].' - ':''); -p($theme->getTitle()); -?> + p(!empty($_['application']) ? $_['application'].' - ' : ''); + p($theme->getTitle()); + ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <?php if ($theme->getiTunesAppId() !== '') { ?> 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" /> |