aboutsummaryrefslogtreecommitdiff
path: root/app/views/score/index.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-09 09:18:53 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-03-09 09:25:41 +0100
commit343a471f165dfef235e056caec1955fd9ee423cb (patch)
treec2f865dcbc25695a581e4d655ea2b30a0edc3e1f /app/views/score/index.php
parent6a14782858a297ead2f509652ce914d8aefb5531 (diff)
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330 Merge request studip/studip!4802
Diffstat (limited to 'app/views/score/index.php')
-rw-r--r--app/views/score/index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/score/index.php b/app/views/score/index.php
index b11a86a..abae1a8 100644
--- a/app/views/score/index.php
+++ b/app/views/score/index.php
@@ -55,7 +55,7 @@
<?= htmlReady($person['fullname']) ?>
</a>
<? foreach ($person['is_king'] as $type => $text): ?>
- <?= Icon::create('crown', Icon::ROLE_SORT)->asSvg(['title' => $text, 'alt' => $text, 'class' => 'text-top']) ?>
+ <?= Icon::create('crown', Icon::ROLE_SORT)->asImg(['title' => $text, 'alt' => $text, 'class' => 'text-top']) ?>
<? endforeach ?>
</td>
<td class="hidden-small-down">
@@ -68,7 +68,7 @@
$content .= sprintf(
'<a href="%s">%s</a> ',
URLHelper::getLink('dispatch.php/profile?username=' . $person['username']),
- Icon::create('news', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asSvg()
+ Icon::create('news', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asImg()
);
} else {
$content .= Assets::img('blank.gif', ['width' => Icon::SIZE_DEFAULT]) . ' ';
@@ -80,7 +80,7 @@
$content .= sprintf(
'<a href="%s">%s</a> ',
URLHelper::getLink('dispatch.php/profile?username=' . $person['username'] . '#questionnaire_area'),
- Icon::create('vote', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asSvg()
+ Icon::create('vote', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asImg()
);
} else {
$content .= Assets::img('blank.gif', ['width' => Icon::SIZE_DEFAULT]) . ' ';
@@ -92,7 +92,7 @@
$content .= sprintf(
'<a href="%s">%s</a> ',
URLHelper::getLink('dispatch.php/profile?username=' . $person['username'] . '#a'),
- Icon::create('schedule', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asSvg()
+ Icon::create('schedule', Icon::ROLE_CLICKABLE, ['title' => $tmp])->asImg()
);
} else {
$content .= Assets::img('blank.gif', ['width' => Icon::SIZE_DEFAULT]) . ' ';
@@ -109,7 +109,7 @@
<? if($person['user_id'] == $GLOBALS['user']->id): ?>
<a href="<?= $controller->url_for('score/unpublish') ?>">
<?= Icon::create('trash', Icon::ROLE_CLICKABLE, ['title' => _('Ihren Wert von der Liste löschen')])
- ->asSvg(['class' => 'text-top'])
+ ->asImg(['class' => 'text-top'])
?>
</a>
<? endif; ?>