summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2024-01-12 16:53:04 +0100
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2024-01-16 14:50:02 +0100
commitacc78272a548ed282e7fad1861931d18d27134b6 (patch)
tree377bd7d9575e3401eef2639ec9dd6af8d223ba04 /core
parent95baf48216d89e5f1f817cb76c1afa2a362f1df9 (diff)
downloadnextcloud-server-acc78272a548ed282e7fad1861931d18d27134b6.tar.gz
nextcloud-server-acc78272a548ed282e7fad1861931d18d27134b6.zip
Complete `<h1>` settings heading
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> (cherry picked from commit f6ec297df6ccdef217765c02e7e3bbc835547092) Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.user.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 9c23930f324..bdffa3adc6f 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -87,7 +87,10 @@ p($theme->getTitle());
<main id="content" class="app-<?php p($_['appid']) ?>">
<h1 class="hidden-visually" id="page-heading-level-1">
- <?php p(!empty($_['pageTitle'])?$_['pageTitle']:$theme->getName()); ?>
+ <?php p((!empty($_['application']) && !empty($_['pageTitle']) && $_['application'] != $_['pageTitle'])
+ ? $_['application'].': '.$_['pageTitle']
+ : (!empty($_['pageTitle']) ? $_['pageTitle'] : $theme->getName())
+ ); ?>
</h1>
<?php print_unescaped($_['content']); ?>
</main>