Skip to content
Snippets Groups Projects
Commit fa16c1f9 authored by Björn Schießle's avatar Björn Schießle
Browse files

fix path to owncloud logo

parent ac9733a8
Branches
No related tags found
No related merge requests found
......@@ -28,11 +28,13 @@ $uid = \OC::$server->getUserSession()->getUser()->getUID();
$server = \OC::$server->getURLGenerator()->getAbsoluteURL('/');
$cloudID = $uid . '@' . rtrim(\OCA\Files_Sharing\Helper::removeProtocolFromUrl($server), '/');
$url = 'https://owncloud.org/federation';
$ownCloudLogoPath = \OC::$server->getURLGenerator()->imagePath('files_sharing', 'social-owncloud.svg');
$tmpl = new OCP\Template('files_sharing', 'settings-personal');
$tmpl->assign('outgoingServer2serverShareEnabled', \OCA\Files_Sharing\Helper::isOutgoingServer2serverShareEnabled());
$tmpl->assign('message_with_URL', $l->t('Share with me through my #ownCloud federation ID %s see %s', [$cloudID, $url]));
$tmpl->assign('message_without_URL', $l->t('Share with me through my #ownCloud federation ID %s', [$cloudID]));
$tmpl->assign('owncloud_logo_path', $ownCloudLogoPath);
$tmpl->assign('reference', $url);
$tmpl->assign('cloudId', $cloudID);
......
......@@ -51,7 +51,7 @@ style('files_sharing', '3rdparty/gs-share/style');
<?php p($l->t('Add it to your website:')); ?>
<a target="_blank" href="<?php p($_['reference']); ?>">
<img src="img/social-owncloud.svg" />
<img src="<?php p($_['owncloud_logo_path']); ?>" />
<?php p($l->t('Share with me via ownCloud')); ?>
</a>
</p>
......@@ -59,7 +59,7 @@ style('files_sharing', '3rdparty/gs-share/style');
<p>
<?php p($l->t('HTML Code:')); ?>
<xmp><a target="_blank" href="<?php p($_['reference']); ?>">
<img src="../img/social-owncloud.svg" />
<img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($_['owncloud_logo_path'])); ?>" />
<?php p($l->t('Share with me via ownCloud')); ?>
</a></xmp>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment