diff options
author | Andrii Rublov <airublev@outlook.com> | 2024-02-14 16:38:46 +0100 |
---|---|---|
committer | Andrii Rublov <github.a@rublov.me> | 2024-02-23 18:39:23 +0100 |
commit | 8d22d341c80b8d7c791e57829ef244d97d3fa4f1 (patch) | |
tree | d36cd8ea053e18986bb5295c08a44ff108cbfd01 /core/templates | |
parent | 18434d1ef314016fb287e764cfa1de8b74dfd0f4 (diff) | |
download | nextcloud-server-8d22d341c80b8d7c791e57829ef244d97d3fa4f1.tar.gz nextcloud-server-8d22d341c80b8d7c791e57829ef244d97d3fa4f1.zip |
[Bugfix]: Titles of pages (dashboard, apps-settings, users-settings) #43327
Signed-off-by: Andrii Rublov <airublev@outlook.com>
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" /> |