diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-09 09:18:53 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-03-09 09:18:53 +0100 |
| commit | 08da9f257ff4efc98dd058e81984ac9bd6e46639 (patch) | |
| tree | 5e397bb3771fa096b30d435a12bc6ab8687751b2 /templates/shared/action-menu-single.php | |
| parent | ef89c567131c55840192820ed7510497d970f36d (diff) | |
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330
Merge request studip/studip!4802
Diffstat (limited to 'templates/shared/action-menu-single.php')
| -rw-r--r-- | templates/shared/action-menu-single.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/shared/action-menu-single.php b/templates/shared/action-menu-single.php index 9fdd5d3..dbe38c1 100644 --- a/templates/shared/action-menu-single.php +++ b/templates/shared/action-menu-single.php @@ -15,7 +15,7 @@ <? if ($action['disabled']): ?> <label class="undecorated action-menu-item-disabled" aria-disabled="true" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>> <? if ($action['icon']): ?> - <?= $action['icon']->asSvg(['class' => 'action-menu-item-icon']) ?> + <?= $action['icon']->asImg(['class' => 'action-menu-item-icon']) ?> <? else: ?> <?= htmlReady($action['label']) ?> <? endif ?> @@ -23,7 +23,7 @@ <? elseif ($action['type'] === 'link'): ?> <a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>> <? if ($action['icon']): ?> - <?= $action['icon']->asSvg(['class' => 'action-menu-item-icon']) ?> + <?= $action['icon']->asImg(['class' => 'action-menu-item-icon']) ?> <? else: ?> <?= htmlReady($action['label']) ?> <? endif ?> |
