Fixed bug 4006: Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is...
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_content.php
index dbd0a66..b1ddd75 100755 (executable)
@@ -736,8 +736,8 @@ class tslib_cObj {
         * @see getImgResource()
         */
        function IMG_RESOURCE($conf)    {
         * @see getImgResource()
         */
        function IMG_RESOURCE($conf)    {
-               $imgArray = $this->getImgResource($conf['file'],$conf['file.']);
-               return $this->stdWrap($imgArray[3],$conf['stdWrap.']);
+               $GLOBALS['TSFE']->lastImgResourceInfo = $this->getImgResource($conf['file'],$conf['file.']);
+               return $this->stdWrap($GLOBALS['TSFE']->lastImgResourceInfo[3],$conf['stdWrap.']);
        }
 
        /**
        }
 
        /**