diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-05-12 11:06:49 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-05-12 11:06:49 +0000 |
| commit | 215a216ef3bb6525fd54b4d8a1f5de4e7c6bfa17 (patch) | |
| tree | 24370cdc6eb09d4741a9ff677a774d2b03ee3565 | |
| parent | 7eaf4e04e7987bb0fb6b92aecdf9994532cd4b26 (diff) | |
force default dimensions, fixes #2636
Closes #2636
Merge request studip/studip!1792
| -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 05c7496..a34a01e 100644 --- a/templates/shared/action-menu-single.php +++ b/templates/shared/action-menu-single.php @@ -15,14 +15,14 @@ <? if ($action['type'] === 'link'): ?> <a href="<?= htmlReady($action['link']) ?>" <?= arrayToHtmlAttributes($action['attributes'] + ['title' => $action['label']]) ?>> <? if ($action['icon']): ?> - <?= $action['icon']->asImg(false) ?> + <?= $action['icon']->asImg() ?> <? else: ?> <?= htmlReady($action['label']) ?> <? endif ?> </a> <? elseif ($action['type'] === 'button'): ?> <? if ($action['icon']): ?> - <?= $action['icon']->asInput(false, $action['attributes'] + ['name' => $action['name'], 'title' => $action['label']]) ?> + <?= $action['icon']->asInput($action['attributes'] + ['name' => $action['name'], 'title' => $action['label']]) ?> <? else: ?> <button name="<?= htmlReady($action['name']) ?>" <?= arrayToHtmlAttributes($action['attributes']) ?>> <?= htmlReady($action['label']) ?> |
