Feature #4280: stdWrap for params property of IMAGE
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 10 Nov 2007 10:40:03 +0000 (10:40 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Sat, 10 Nov 2007 10:40:03 +0000 (10:40 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2684 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_content.php

index a996ea1..cd4db56 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-11-10  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Feature #6256: $TCA: Newline for Tabs (--div--)
+       * Feature #4280: stdWrap for params property of IMAGE
 
 2007-11-09  Benjamin Mack  <mack@xnos.org>
 
index a25dc94..b71f680 100755 (executable)
@@ -2607,8 +2607,7 @@ class tslib_cObj {
                                $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']?' '.$conf['params']:'').($altParam).' />';
+                       $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'])  {
                                $theValue = $this->linkWrap($theValue,$conf['linkWrap']);
                        } elseif ($conf['imageLinkWrap']) {