aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-11-08 14:38:06 +0100
committerGitHub <noreply@github.com>2024-11-08 14:38:06 +0100
commitd5caf9125d6af1be077fee49e051a73d46a88975 (patch)
tree3cedb618ee75eadb78459ced5cd1de71b364312e /core
parentdeb28f53264cbfedad1b687cd7f0c1daf98b7541 (diff)
parent4d9d617c840431568fc17540937b231b1bc2d698 (diff)
downloadnextcloud-server-d5caf9125d6af1be077fee49e051a73d46a88975.tar.gz
nextcloud-server-d5caf9125d6af1be077fee49e051a73d46a88975.zip
Merge pull request #49142 from nextcloud/feat/sharing-title
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.public.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index e2ed47d0716..bd46ee4f7fc 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -9,8 +9,9 @@
<head data-requesttoken="<?php p($_['requesttoken']); ?>">
<meta charset="utf-8">
<title>
- <?php
- p(!empty($_['application']) ? $_['application'] . ' - ' : '');
+ <?php
+ p(!empty($_['pageTitle']) && $_['pageTitle'] !== $_['application'] ? $_['pageTitle'] . ' - ' : '');
+p(!empty($_['application']) ? $_['application'] . ' - ' : '');
p($theme->getTitle());
?>
</title>