Skip to content

Commit e6dbc71

Browse files
authored
Merge pull request #24052 from nextcloud/backport/23915/stable19
[stable19] Use png icons in caldav reminder emails
2 parents edcbab5 + a6e3bf6 commit e6dbc71

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

apps/dav/lib/CalDAV/Reminder/NotificationProvider/EmailProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,18 @@ private function addBulletList(IEMailTemplate $template,
155155
string $calendarDisplayName,
156156
VEvent $vevent):void {
157157
$template->addBodyListItem($calendarDisplayName, $l10n->t('Calendar:'),
158-
$this->getAbsoluteImagePath('actions/info.svg'));
158+
$this->getAbsoluteImagePath('actions/info.png'));
159159

160160
$template->addBodyListItem($this->generateDateString($l10n, $vevent), $l10n->t('Date:'),
161-
$this->getAbsoluteImagePath('places/calendar.svg'));
161+
$this->getAbsoluteImagePath('places/calendar.png'));
162162

163163
if (isset($vevent->LOCATION)) {
164164
$template->addBodyListItem((string) $vevent->LOCATION, $l10n->t('Where:'),
165-
$this->getAbsoluteImagePath('actions/address.svg'));
165+
$this->getAbsoluteImagePath('actions/address.png'));
166166
}
167167
if (isset($vevent->DESCRIPTION)) {
168168
$template->addBodyListItem((string) $vevent->DESCRIPTION, $l10n->t('Description:'),
169-
$this->getAbsoluteImagePath('actions/more.svg'));
169+
$this->getAbsoluteImagePath('actions/more.png'));
170170
}
171171
}
172172

apps/dav/tests/unit/CalDAV/Reminder/NotificationProvider/EmailProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ private function setupURLGeneratorMock(int $times=1):void {
500500
$this->urlGenerator
501501
->expects($this->at(8 * $i))
502502
->method('imagePath')
503-
->with('core', 'actions/info.svg')
503+
->with('core', 'actions/info.png')
504504
->willReturn('imagePath1');
505505

506506
$this->urlGenerator
@@ -512,7 +512,7 @@ private function setupURLGeneratorMock(int $times=1):void {
512512
$this->urlGenerator
513513
->expects($this->at(8 * $i + 2))
514514
->method('imagePath')
515-
->with('core', 'places/calendar.svg')
515+
->with('core', 'places/calendar.png')
516516
->willReturn('imagePath2');
517517

518518
$this->urlGenerator
@@ -524,7 +524,7 @@ private function setupURLGeneratorMock(int $times=1):void {
524524
$this->urlGenerator
525525
->expects($this->at(8 * $i + 4))
526526
->method('imagePath')
527-
->with('core', 'actions/address.svg')
527+
->with('core', 'actions/address.png')
528528
->willReturn('imagePath3');
529529

530530
$this->urlGenerator
@@ -536,7 +536,7 @@ private function setupURLGeneratorMock(int $times=1):void {
536536
$this->urlGenerator
537537
->expects($this->at(8 * $i + 6))
538538
->method('imagePath')
539-
->with('core', 'actions/more.svg')
539+
->with('core', 'actions/more.png')
540540
->willReturn('imagePath4');
541541

542542
$this->urlGenerator

core/img/actions/address.png

438 Bytes
Loading

core/img/actions/info.png

230 Bytes
Loading

core/img/actions/more.png

182 Bytes
Loading

core/img/places/calendar.png

294 Bytes
Loading

0 commit comments

Comments
 (0)