Project

General

Profile

Bug #22162 ยป alttext_deprecation.diff

Administrator Admin, 2010-02-23 11:11

View differences:

typo3/sysext/cms/tslib/class.tslib_content.php (working copy)
$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 = '<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).' />';
if ($conf['linkWrap']) {
    (1-1/1)