aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-11-29 08:03:25 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-11-29 08:03:25 +0000
commit999be96b285494f4dc668c3669f6f8175357c800 (patch)
tree831d53f81dbbe97529c270dff7190d1e1a5bc19b /templates
parentcc50188fe02da7a2a27eaadf78ac85e86108865d (diff)
prevent php8 warnings, fixes #4925
Closes #4925 Merge request studip/studip!3695
Diffstat (limited to 'templates')
-rw-r--r--templates/forms/file_input.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/templates/forms/file_input.php b/templates/forms/file_input.php
index 2441b52..b987b92 100644
--- a/templates/forms/file_input.php
+++ b/templates/forms/file_input.php
@@ -1,9 +1,21 @@
+<?php
+/**
+ * @var string $title
+ * @var string $name
+ * @var string $folder
+ * @var string $id
+ * @var string $uploadUrl
+ * @var bool $multiple
+ * @var string $accept
+ * @var bool $required
+ */
+?>
<div class="formpart" data-form-input-for="<?= htmlReady($name) ?>">
<file-upload
name="<?= htmlReady($name) ?>"
title="<?= htmlReady($title) ?>"
upload-url="<?= htmlReady($uploadUrl) ?>"
- folder="<?= htmlReady($value) ?>"
+ folder="<?= htmlReady($folder) ?>"
id="<?= htmlReady($id) ?>"
:multiple="<?= $multiple ? 'true' : 'false' ?>"
accept="<?= htmlReady($accept) ?>"