aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-11 12:45:23 +0100
committerGitHub <noreply@github.com>2020-11-11 12:45:23 +0100
commit0c7bed26e843a78ebc0a4ab624bfc24b6fb527f0 (patch)
treeb41e3e8c0e4b84fa59b6d4bfdaae9c863847e0ea /apps/dav
parent410e295d01f8310e5497dab079915e4a835730d8 (diff)
parentf1c242c71da3addb80d1a932e22652f32ff36c64 (diff)
downloadnextcloud-server-0c7bed26e843a78ebc0a4ab624bfc24b6fb527f0.tar.gz
nextcloud-server-0c7bed26e843a78ebc0a4ab624bfc24b6fb527f0.zip
Merge pull request #23915 from st3iny/fix/noid/png-icons-in-caldav-reminder-emails
Use png icons in caldav reminder emails
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php8
-rw-r--r--apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php8
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
index 754cdc8c616..e63f08646be 100644
--- a/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
+++ b/apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php
@@ -155,18 +155,18 @@ class EmailProvider extends AbstractProvider {
string $calendarDisplayName,
VEvent $vevent):void {
$template->addBodyListItem($calendarDisplayName, $l10n->t('Calendar:'),
- $this->getAbsoluteImagePath('actions/info.svg'));
+ $this->getAbsoluteImagePath('actions/info.png'));
$template->addBodyListItem($this->generateDateString($l10n, $vevent), $l10n->t('Date:'),
- $this->getAbsoluteImagePath('places/calendar.svg'));
+ $this->getAbsoluteImagePath('places/calendar.png'));
if (isset($vevent->LOCATION)) {
$template->addBodyListItem((string) $vevent->LOCATION, $l10n->t('Where:'),
- $this->getAbsoluteImagePath('actions/address.svg'));
+ $this->getAbsoluteImagePath('actions/address.png'));
}
if (isset($vevent->DESCRIPTION)) {
$template->addBodyListItem((string) $vevent->DESCRIPTION, $l10n->t('Description:'),
- $this->getAbsoluteImagePath('actions/more.svg'));
+ $this->getAbsoluteImagePath('actions/more.png'));
}
}
diff --git a/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php b/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php
index 47fcc1680f6..c243522b78e 100644
--- a/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php
+++ b/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php
@@ -478,7 +478,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
$this->urlGenerator
->expects($this->at(8 * $i))
->method('imagePath')
- ->with('core', 'actions/info.svg')
+ ->with('core', 'actions/info.png')
->willReturn('imagePath1');
$this->urlGenerator
@@ -490,7 +490,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
$this->urlGenerator
->expects($this->at(8 * $i + 2))
->method('imagePath')
- ->with('core', 'places/calendar.svg')
+ ->with('core', 'places/calendar.png')
->willReturn('imagePath2');
$this->urlGenerator
@@ -502,7 +502,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
$this->urlGenerator
->expects($this->at(8 * $i + 4))
->method('imagePath')
- ->with('core', 'actions/address.svg')
+ ->with('core', 'actions/address.png')
->willReturn('imagePath3');
$this->urlGenerator
@@ -514,7 +514,7 @@ class EmailProviderTest extends AbstractNotificationProviderTest {
$this->urlGenerator
->expects($this->at(8 * $i + 6))
->method('imagePath')
- ->with('core', 'actions/more.svg')
+ ->with('core', 'actions/more.png')
->willReturn('imagePath4');
$this->urlGenerator