summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/settings-personal.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-25 16:05:57 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-25 16:05:57 +0200
commitfcde0234b7ed786f2a2440cb814d455b33611f0d (patch)
treeed6b4dbf54d96d75f96b0d78bf83fe6ca5c98343 /apps/files_sharing/settings-personal.php
parent1dc9283413dd5547d6b2080efbd33e0ce1f383d3 (diff)
downloadnextcloud-server-fcde0234b7ed786f2a2440cb814d455b33611f0d.tar.gz
nextcloud-server-fcde0234b7ed786f2a2440cb814d455b33611f0d.zip
Simply hide sharing buttons for IE8 - fixes #18011
Diffstat (limited to 'apps/files_sharing/settings-personal.php')
-rw-r--r--apps/files_sharing/settings-personal.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_sharing/settings-personal.php b/apps/files_sharing/settings-personal.php
index 9ff94eb16c8..f4c9c6cd308 100644
--- a/apps/files_sharing/settings-personal.php
+++ b/apps/files_sharing/settings-personal.php
@@ -25,6 +25,12 @@
$l = \OC::$server->getL10N('files_sharing');
+$isIE8 = false;
+preg_match('/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches);
+if (count($matches) > 0 && $matches[1] <= 9) {
+ $isIE8 = true;
+}
+
$uid = \OC::$server->getUserSession()->getUser()->getUID();
$server = \OC::$server->getURLGenerator()->getAbsoluteURL('/');
$cloudID = $uid . '@' . rtrim(\OCA\Files_Sharing\Helper::removeProtocolFromUrl($server), '/');
@@ -38,5 +44,6 @@ $tmpl->assign('message_without_URL', $l->t('Share with me through my #ownCloud F
$tmpl->assign('owncloud_logo_path', $ownCloudLogoPath);
$tmpl->assign('reference', $url);
$tmpl->assign('cloudId', $cloudID);
+$tmpl->assign('showShareIT', !$isIE8);
return $tmpl->fetchPage();