diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2020-11-05 18:18:40 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2020-11-11 12:38:24 +0000 |
commit | a6e3bf6a5967d84a1c8f590f83e11f72edb31eec (patch) | |
tree | c535d4b39bb7062828ad356bd8653abff341800e /apps | |
parent | b1efe1896b78e9573a89baa2888e2f73dce5c6f7 (diff) | |
download | nextcloud-server-a6e3bf6a5967d84a1c8f590f83e11f72edb31eec.tar.gz nextcloud-server-a6e3bf6a5967d84a1c8f590f83e11f72edb31eec.zip |
Use png icons in caldav reminder emails
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php | 8 | ||||
-rw-r--r-- | apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php | 8 |
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 4152e02dc8d..d0dc8f7f555 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 9a22f63c1be..93673758ada 100644 --- a/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php +++ b/apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php @@ -500,7 +500,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 @@ -512,7 +512,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 @@ -524,7 +524,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 @@ -536,7 +536,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 |