summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-29 13:12:23 +0100
committerJulius Härtl <jus@bitgrid.net>2018-10-29 13:18:39 +0100
commit4dda244ce22fe00b72e6f353e0f9fe3daab350b3 (patch)
tree4126bcc6aded4ac49134abbc87705c8b81633b87 /apps
parent0c89dd2197a13dab06d31675ed98cd3a76aaf44d (diff)
downloadnextcloud-server-4dda244ce22fe00b72e6f353e0f9fe3daab350b3.tar.gz
nextcloud-server-4dda244ce22fe00b72e6f353e0f9fe3daab350b3.zip
Fix logo path in personal federated sharing settings
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/federatedfilesharing/lib/Settings/Personal.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/federatedfilesharing/lib/Settings/Personal.php b/apps/federatedfilesharing/lib/Settings/Personal.php
index e7522d0c963..1379c25478e 100644
--- a/apps/federatedfilesharing/lib/Settings/Personal.php
+++ b/apps/federatedfilesharing/lib/Settings/Personal.php
@@ -28,7 +28,6 @@ namespace OCA\FederatedFileSharing\Settings;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IL10N;
-use OCP\IURLGenerator;
use OCP\IUserSession;
use OCP\Settings\ISettings;
@@ -40,8 +39,6 @@ class Personal implements ISettings {
private $userSession;
/** @var IL10N */
private $l;
- /** @var IURLGenerator */
- private $urlGenerator;
/** @var \OC_Defaults */
private $defaults;
@@ -49,13 +46,11 @@ class Personal implements ISettings {
FederatedShareProvider $federatedShareProvider, #
IUserSession $userSession,
IL10N $l,
- IURLGenerator $urlGenerator,
\OC_Defaults $defaults
) {
$this->federatedShareProvider = $federatedShareProvider;
$this->userSession = $userSession;
$this->l = $l;
- $this->urlGenerator = $urlGenerator;
$this->defaults = $defaults;
}
@@ -71,7 +66,7 @@ class Personal implements ISettings {
'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
- 'logoPath' => $this->urlGenerator->imagePath('core', 'logo.svg'),
+ 'logoPath' => $this->defaults->getLogo(),
'reference' => $url,
'cloudId' => $cloudID,
'color' => $this->defaults->getColorPrimary(),