Skip to content
Snippets Groups Projects
Commit b5f810ac authored by Ernesto Baschny's avatar Ernesto Baschny
Browse files

Added feature #16283: Optimize stdWrap usage for TypoScript content element...

Added feature #16283: Optimize stdWrap usage for TypoScript content element IMG_RESOURCE (Thanks to Joey Hasenau)


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9413 709f56b5-9817-0410-a4d7-c38de5d9e867
parent bfe3daf9
Branches
Tags
No related merge requests found
......@@ -18,6 +18,7 @@
 
* Added feature #15668: TYPO3 Backend should display flags for translations as sprite icons (Thanks to Steffen Ritter)
* Follow-up to #16111: Fixed display of group/db selector getting displayed below since this feature (e.g. sys_template.baseOn)
* Added feature #16283: Optimize stdWrap usage for TypoScript content element IMG_RESOURCE (Thanks to Joey Hasenau)
 
2010-11-16 Sebastian Kurfuerst <sebastian@typo3.org>
 
......
......@@ -42,8 +42,17 @@ class tslib_content_ImageResource extends tslib_content_Abstract {
* @return string Output
*/
public function render($conf = array()) {
$GLOBALS['TSFE']->lastImgResourceInfo = $this->cObj->getImgResource($conf['file'], $conf['file.']);
return $this->cObj->stdWrap($GLOBALS['TSFE']->lastImgResourceInfo[3], $conf['stdWrap.']);
$imageResource = $GLOBALS['TSFE']->lastImgResourceInfo[3];
$theValue = isset($conf['stdWrap.'])
? $this->cObj->stdWrap($imageResource, $conf['stdWrap.'])
: $imageResource;
return $theValue;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment