Project

General

Profile

Feature #41347 » ImageViewHelper.php.patch

ImageViewHelper patch - Thomas Luzat, 2012-09-25 12:56

View differences:

typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php 2012-09-02 16:59:00.000000000 +0200 → typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php 2012-09-25 12:37:32.400536612 +0200
* @param integer $minHeight minimum height of the image
* @param integer $maxWidth maximum width of the image
* @param integer $maxHeight maximum height of the image
* @param array $params additional parameters to pass to getImgResource
*
* @return string rendered tag.
*/
public function render($src, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL) {
public function render($src, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL, array $params = NULL) {
if (TYPO3_MODE === 'BE') {
$this->simulateFrontendEnvironment();
}
......
'maxW' => $maxWidth,
'maxH' => $maxHeight
);
if ($params !== NULL) {
$setup = $params + $setup;
}
if (TYPO3_MODE === 'BE' && substr($src, 0, 3) === '../') {
$src = substr($src, 3);
}
    (1-1/1)