fix path to owncloud logo

This commit is contained in:
Bjoern Schiessle 2015-06-17 13:52:18 +02:00
parent ac9733a8b8
commit fa16c1f9b4
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -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>