Issue Bug Closed

#87410BackendUtility::thumbCode variable $tparams ignored/unused

Jan Siemon 01/11/19, 15:38 updated 05/07/19, 12:13

Description

When calling
\TYPO3\CMS\Backend\Utility\BackendUtility::thumbCode
its 8th parameter, variable $tparams (“Optional: $tparams is additional attributes for the image tags”), does not do anything or to much depending on case: calling it with FAL reference or parameter $uploaddir.
  1. When calling with FAL reference the parameter does not do anything, since the variable is not used in the code (BackendUtility.php:1348-1411)
    Line 1398
     $imgTag = ‘‘;
    should make use of that variable.
  2. When using the $uploaddir parameter (BackendUtility.php:1413-1476) it is used in generating the image tag, cf. line 1458:
    $image = ‘' . htmlspecialchars($imageUrl) . '

Reviews 2