aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-23 21:18:28 +0200
committerGitHub <noreply@github.com>2019-08-23 21:18:28 +0200
commit80f5bc690cfb5deffcb99369bcd34d78a7e4654b (patch)
tree98dd48bd6df51f51654d7aeae6999d6b77b3a7c6 /core
parent95ce9615d04c53e0f068a2dab3affcd8ca5703e2 (diff)
parent3e081c43d9b82cab95ef147b8a11e33c2a0eb082 (diff)
downloadnextcloud-server-80f5bc690cfb5deffcb99369bcd34d78a7e4654b.tar.gz
nextcloud-server-80f5bc690cfb5deffcb99369bcd34d78a7e4654b.zip
Merge pull request #16847 from nextcloud/bugfix/empty-itunes-id
Only add the app-itunes-app tag if the id is set
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.guest.php2
-rw-r--r--core/templates/layout.public.php2
-rw-r--r--core/templates/layout.user.php2
3 files changed, 6 insertions, 0 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 91bfd08597c..8ba6b0a42b3 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -11,7 +11,9 @@
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+ <?php if ($theme->getiTunesAppId() !== '') { ?>
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
+ <?php } ?>
<meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>">
<link rel="icon" href="<?php print_unescaped(image_path('', 'favicon.ico')); /* IE11+ supports png */ ?>">
<link rel="apple-touch-icon" href="<?php print_unescaped(image_path('', 'favicon-touch.png')); ?>">
diff --git a/core/templates/layout.public.php b/core/templates/layout.public.php
index 9de31694918..bbfa264d171 100644
--- a/core/templates/layout.public.php
+++ b/core/templates/layout.public.php
@@ -10,7 +10,9 @@
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+ <?php if ($theme->getiTunesAppId() !== '') { ?>
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
+ <?php } ?>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!=='files')? $_['application']:$theme->getTitle()); ?>">
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 1dfdf63e40b..7712992c9bf 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -10,7 +10,9 @@
</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+ <?php if ($theme->getiTunesAppId() !== '') { ?>
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
+ <?php } ?>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="<?php p((!empty($_['application']) && $_['appid']!='files')? $_['application']:$theme->getTitle()); ?>">