ImageViewHelper.php.patch

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

Download (1.1 KB)

View differences:

typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php 2012-09-25 12:37:32.400536612 +0200
103 103
	 * @param integer $minHeight minimum height of the image
104 104
	 * @param integer $maxWidth maximum width of the image
105 105
	 * @param integer $maxHeight maximum height of the image
106
	 * @param array $params additional parameters to pass to getImgResource
106 107
	 *
107 108
	 * @return string rendered tag.
108 109
	 */
109
	public function render($src, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL) {
110
	public function render($src, $width = NULL, $height = NULL, $minWidth = NULL, $minHeight = NULL, $maxWidth = NULL, $maxHeight = NULL, array $params = NULL) {
110 111
		if (TYPO3_MODE === 'BE') {
111 112
			$this->simulateFrontendEnvironment();
112 113
		}
......
118 119
			'maxW' => $maxWidth,
119 120
			'maxH' => $maxHeight
120 121
		);
122
		if ($params !== NULL) {
123
			$setup = $params + $setup;
124
		}
121 125
		if (TYPO3_MODE === 'BE' && substr($src, 0, 3) === '../') {
122 126
			$src = substr($src, 3);
123 127
		}