aboutsummaryrefslogtreecommitdiff
path: root/app/views/files_dashboard
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:18:53 +0100
commit08da9f257ff4efc98dd058e81984ac9bd6e46639 (patch)
tree5e397bb3771fa096b30d435a12bc6ab8687751b2 /app/views/files_dashboard
parentef89c567131c55840192820ed7510497d970f36d (diff)
deprecate asSvg in favor of asImg, fixes #6330
Closes #6330 Merge request studip/studip!4802
Diffstat (limited to 'app/views/files_dashboard')
-rw-r--r--app/views/files_dashboard/_input-group-search.php2
-rw-r--r--app/views/files_dashboard/_search_tr.php8
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/files_dashboard/_input-group-search.php b/app/views/files_dashboard/_input-group-search.php
index df65ddf..402c62d 100644
--- a/app/views/files_dashboard/_input-group-search.php
+++ b/app/views/files_dashboard/_input-group-search.php
@@ -10,7 +10,7 @@
<span class="input-group-append">
<button type="submit" class="button">
- <?= Icon::create('search')->asSvg(['title' => _('Suche starten')]) ?>
+ <?= Icon::create('search')->asImg(['title' => _('Suche starten')]) ?>
</button>
<? if (!empty($query)) : ?>
diff --git a/app/views/files_dashboard/_search_tr.php b/app/views/files_dashboard/_search_tr.php
index 6048261..607de71 100644
--- a/app/views/files_dashboard/_search_tr.php
+++ b/app/views/files_dashboard/_search_tr.php
@@ -3,10 +3,10 @@
<td class="files-search-icon">
<? if ($searchResult['folder']->isFileDownloadable($searchResult['fileRef'], $user->id)) : ?>
<a href="<?= htmlReady($searchResult['fileRef']->getDownloadURL('force_download')) ?>" target="_blank" rel="noopener noreferrer">
- <?= FileManager::getIconForFileRef($searchResult['fileRef'])->asSvg(24) ?>
+ <?= FileManager::getIconForFileRef($searchResult['fileRef'])->asImg(24) ?>
</a>
<? else : ?>
- <?= FileManager::getIconForFileRef($searchResult['fileRef'], Icon::ROLE_INACTIVE)->asSvg(24) ?>
+ <?= FileManager::getIconForFileRef($searchResult['fileRef'], Icon::ROLE_INACTIVE)->asImg(24) ?>
<? endif ?>
</td>
@@ -21,7 +21,7 @@
<? if ($searchResult['fileRef']->terms_of_use &&
$searchResult['fileRef']->terms_of_use->download_condition > 0) : ?>
- <?= Icon::create('lock-locked', Icon::ROLE_INACTIVE)->asSvg([
+ <?= Icon::create('lock-locked', Icon::ROLE_INACTIVE)->asImg([
'class' => 'text-top',
'title' => _('Das Herunterladen dieser Datei ist nur eingeschränkt möglich.')]) ?>
<? endif; ?>
@@ -35,7 +35,7 @@
<? if ($searchResult['fileRef']->terms_of_use &&
$searchResult['fileRef']->terms_of_use->download_condition > 0) : ?>
- <?= Icon::create('lock-locked', Icon::ROLE_INFO)->asSvg([
+ <?= Icon::create('lock-locked', Icon::ROLE_INFO)->asImg([
'class' => 'text-top',
'title' => _('Das Herunterladen dieser Datei ist nur eingeschränkt möglich.')]) ?>
<? endif; ?>