Skip to content
Snippets Groups Projects
Commit 5894cbb4 authored by Benni Mack's avatar Benni Mack Committed by Georg Ringer
Browse files

[BUGFIX] Allow FileInterface for ClickEnlarge ViewHelper

Although the documentation and the internal
code allows File and FileReference, the functionality
requires a FileReference.

FileInterface is more appropriate and $cObj->imageLinkWrap()
can deal with File and FileReference.

Resolves: #82101
Releases: master, 9.5
Change-Id: I37e4f091fe0598509eef050cb811ad7627f16c21
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60435


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSteffen Frese <steffenf14@gmail.com>
Tested-by: default avatarJörg Bösche <typo3@joergboesche.de>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarSteffen Frese <steffenf14@gmail.com>
Reviewed-by: default avatarJörg Bösche <typo3@joergboesche.de>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent a5cf7057
Branches
Tags
No related merge requests found
......@@ -15,7 +15,6 @@ namespace TYPO3\CMS\FluidStyledContent\ViewHelpers\Link;
*/
use TYPO3\CMS\Core\Resource\FileInterface;
use TYPO3\CMS\Core\Resource\FileReference;
use TYPO3\CMS\Core\TypoScript\TypoScriptService;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
......@@ -52,7 +51,7 @@ class ClickEnlargeViewHelper extends AbstractViewHelper
*/
public function initializeArguments()
{
$this->registerArgument('image', FileReference::class, 'The original image file', true);
$this->registerArgument('image', FileInterface::class, 'The original image file', true);
$this->registerArgument(
'configuration',
'mixed',
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment