Bug #22162 ยป alttext_deprecation.diff

Administrator Admin, 2010-02-23 11:11

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
3089 3089
			$info[3] = t3lib_div::png_to_gif_by_imagemagick($info[3]);
3090 3090
			$GLOBALS['TSFE']->imagesOnPage[]=$info[3];		// This array is used to collect the image-refs on the page...
3091 3091

  
3092
			if (!strlen($conf['altText']) && !is_array($conf['altText.']))	{	// Backwards compatible:
3093
				if ($conf['altText'] || $conf['altText.']) {
3094
					$GLOBALS['TSFE']->logDeprecatedTyposcript('IMAGE.alttext');
3095
				}
3092
			
3093
				// Backwards compatibility if altText is not set and alttext is set
3094
			if (!strlen($conf['altText']) &&
3095
					!is_array($conf['altText.']) &&
3096
					($conf['alttext'] || $conf['alttext.']))	{
3097
				$GLOBALS['TSFE']->logDeprecatedTyposcript('IMAGE.alttext');
3096 3098
				$conf['altText'] = $conf['alttext'];
3097 3099
				$conf['altText.'] = $conf['alttext.'];
3098 3100
			}
3101
			
3099 3102
			$altParam = $this->getAltParam($conf);
3100 3103
			$theValue = '<img src="'.htmlspecialchars($GLOBALS['TSFE']->absRefPrefix.t3lib_div::rawUrlEncodeFP($info[3])).'" width="'.$info[0].'" height="'.$info[1].'"'.$this->getBorderAttr(' border="'.intval($conf['border']).'"').(($conf['params'] || is_array($conf['params.']))?' '.$this->stdWrap($conf['params'],$conf['params.']):'').($altParam).' />';
3101 3104
			if ($conf['linkWrap'])	{
    (1-1/1)