diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-07-07 11:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 11:05:00 +0200 |
commit | b4deba207856e92adfbf7239ea7d2420157993dd (patch) | |
tree | 22bc71158a91e74e1d28c639c0801a735a78db76 /apps/dav/lib/CalDAV/Activity/Provider/Event.php | |
parent | b1520a645833c2047103a2cf550f5c21b1c25586 (diff) | |
parent | ca3a6ec6077e4248d56550b1acb19ab72546e808 (diff) | |
download | nextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.tar.gz nextcloud-server-b4deba207856e92adfbf7239ea7d2420157993dd.zip |
Merge pull request #5483 from nextcloud/issue-5075-png-files-for-activity-emails
Use PNGs for icons in activity emails
Diffstat (limited to 'apps/dav/lib/CalDAV/Activity/Provider/Event.php')
-rw-r--r-- | apps/dav/lib/CalDAV/Activity/Provider/Event.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Activity/Provider/Event.php b/apps/dav/lib/CalDAV/Activity/Provider/Event.php index daaace6b5be..b591eaa351c 100644 --- a/apps/dav/lib/CalDAV/Activity/Provider/Event.php +++ b/apps/dav/lib/CalDAV/Activity/Provider/Event.php @@ -80,7 +80,11 @@ class Event extends Base { $this->l = $this->languageFactory->get('dav', $language); - $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.svg'))); + if ($this->activityManager->getRequirePNG()) { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.png'))); + } else { + $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/calendar-dark.svg'))); + } if ($event->getSubject() === self::SUBJECT_OBJECT_ADD . '_event') { $subject = $this->l->t('{actor} created event {event} in calendar {calendar}'); |