From 7e5b0ad24904fe3580cc77a9e552791a5fca9839 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 13 Jun 2016 19:33:27 +0200 Subject: [PATCH] Do not link to ownCloud Federation page --- apps/files_sharing/settings-personal.php | 8 +------- apps/files_sharing/templates/settings-personal.php | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/apps/files_sharing/settings-personal.php b/apps/files_sharing/settings-personal.php index 982a8b05c15..5a839e91c1c 100644 --- a/apps/files_sharing/settings-personal.php +++ b/apps/files_sharing/settings-personal.php @@ -25,12 +25,6 @@ $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; -} - $cloudID = \OC::$server->getUserSession()->getUser()->getCloudId(); $url = 'https://owncloud.org/federation#' . $cloudID; $ownCloudLogoPath = \OC::$server->getURLGenerator()->imagePath('core', 'logo-icon.svg'); @@ -42,6 +36,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); +$tmpl->assign('showShareIT', false); return $tmpl->fetchPage(); diff --git a/apps/files_sharing/templates/settings-personal.php b/apps/files_sharing/templates/settings-personal.php index 32f358765c9..f0bbf2d9355 100644 --- a/apps/files_sharing/templates/settings-personal.php +++ b/apps/files_sharing/templates/settings-personal.php @@ -57,7 +57,7 @@ if ($_['showShareIT']) { style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;"> - t('Share with me via ownCloud')); ?> + t('Share with me via Nextcloud')); ?>

@@ -67,7 +67,7 @@ if ($_['showShareIT']) { style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;"> - t('Share with me via ownCloud')); ?> + t('Share with me via Nextcloud')); ?>