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 /app/views/vips/exercises/SingleChoiceTask | |
| parent | ef89c567131c55840192820ed7510497d970f36d (diff) | |
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330
Merge request studip/studip!4802
Diffstat (limited to 'app/views/vips/exercises/SingleChoiceTask')
| -rw-r--r-- | app/views/vips/exercises/SingleChoiceTask/correct.php | 4 | ||||
| -rw-r--r-- | app/views/vips/exercises/SingleChoiceTask/print.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/views/vips/exercises/SingleChoiceTask/correct.php b/app/views/vips/exercises/SingleChoiceTask/correct.php index a2796fb..cecc743 100644 --- a/app/views/vips/exercises/SingleChoiceTask/correct.php +++ b/app/views/vips/exercises/SingleChoiceTask/correct.php @@ -28,9 +28,9 @@ <? if (isset($response[$group]) && $response[$group] === "$key"): ?> <? if ($entry['score'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? elseif ($key != -1): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> </div> diff --git a/app/views/vips/exercises/SingleChoiceTask/print.php b/app/views/vips/exercises/SingleChoiceTask/print.php index 5ac9961..a61bc84 100644 --- a/app/views/vips/exercises/SingleChoiceTask/print.php +++ b/app/views/vips/exercises/SingleChoiceTask/print.php @@ -27,9 +27,9 @@ <? if ($print_correction): ?> <? if (isset($response[$group]) && $response[$group] === "$key"): ?> <? if ($entry['score'] == 1): ?> - <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asSvg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> + <?= Icon::create('accept', Icon::ROLE_STATUS_GREEN)->asImg(['class' => 'correction_marker', 'title' => _('richtig')]) ?> <? elseif ($key != -1): ?> - <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asSvg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> + <?= Icon::create('decline', Icon::ROLE_STATUS_RED)->asImg(['class' => 'correction_marker', 'title' => _('falsch')]) ?> <? endif ?> <? endif ?> <? endif ?> |
