diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-11 13:56:06 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-11-11 13:56:06 +0000 |
| commit | 6bc51a71aa09d4f3e7797631517707851ce19acf (patch) | |
| tree | 6757e5da72274ecfba34056e0cc1dfe26188912f /lib/visual.inc.php | |
| parent | bdcccdeed469faf21bdc9f85ca2caddb32825a9f (diff) | |
set default icon size to 20, fixes #2801
Closes #2801
Merge request studip/studip!1908
Diffstat (limited to 'lib/visual.inc.php')
| -rw-r--r-- | lib/visual.inc.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/visual.inc.php b/lib/visual.inc.php index 9988236..2282a68 100644 --- a/lib/visual.inc.php +++ b/lib/visual.inc.php @@ -521,19 +521,5 @@ function display_exception($exception, $as_html = false, $deep = false) { * @todo Nested attribute definitions? */ function arrayToHtmlAttributes(array $attributes) { - // Filter empty attributes - $attributes = array_filter($attributes, function ($value) { - return isset($value) && $value !== false; - }); - - // Actual conversion - $result = []; - foreach ($attributes as $key => $value) { - if ($value === true) { - $result[] = htmlReady($key); - } else { - $result[] = sprintf('%s="%s"', htmlReady($key), htmlReady($value)); - } - } - return implode(' ', $result); + return (string) HTMLAttributes::from($attributes); } |
