Do not link to ownCloud Federation page

This commit is contained in:
Lukas Reschke 2016-06-13 19:33:27 +02:00
parent 5727a0dbe0
commit 7e5b0ad249
No known key found for this signature in database
GPG Key ID: 9AB0ADB949B6898C
2 changed files with 3 additions and 9 deletions

View File

@ -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();

View File

@ -57,7 +57,7 @@ if ($_['showShareIT']) {
style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;">
<img src="<?php p($_['owncloud_logo_path']); ?>"
style="width:50px;position:relative;top:8px;">
<?php p($l->t('Share with me via ownCloud')); ?>
<?php p($l->t('Share with me via Nextcloud')); ?>
</a>
</p>
@ -67,7 +67,7 @@ if ($_['showShareIT']) {
style="padding:10px;background-color:#0082c9;color:#fff;border-radius:3px;padding-left:4px;">
<img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['owncloud_logo_path'])); ?>"
style="width:50px;position:relative;top:8px;">
<?php p($l->t('Share with me via ownCloud')); ?>
<?php p($l->t('Share with me via Nextcloud')); ?>
</a></xmp>
</p>