### Eclipse Workspace Patch 1.0 #P TYPO3 trunk (sgdummy) Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 6978) +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy) @@ -3089,13 +3089,16 @@ $info[3] = t3lib_div::png_to_gif_by_imagemagick($info[3]); $GLOBALS['TSFE']->imagesOnPage[]=$info[3]; // This array is used to collect the image-refs on the page... - if (!strlen($conf['altText']) && !is_array($conf['altText.'])) { // Backwards compatible: - if ($conf['altText'] || $conf['altText.']) { - $GLOBALS['TSFE']->logDeprecatedTyposcript('IMAGE.alttext'); - } + + // Backwards compatibility if altText is not set and alttext is set + if (!strlen($conf['altText']) && + !is_array($conf['altText.']) && + ($conf['alttext'] || $conf['alttext.'])) { + $GLOBALS['TSFE']->logDeprecatedTyposcript('IMAGE.alttext'); $conf['altText'] = $conf['alttext']; $conf['altText.'] = $conf['alttext.']; } + $altParam = $this->getAltParam($conf); $theValue = 'getBorderAttr(' border="'.intval($conf['border']).'"').(($conf['params'] || is_array($conf['params.']))?' '.$this->stdWrap($conf['params'],$conf['params.']):'').($altParam).' />'; if ($conf['linkWrap']) {