Fixed bug 4006: Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is...
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Fri, 12 Jan 2007 10:05:29 +0000 (10:05 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Fri, 12 Jan 2007 10:05:29 +0000 (10:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1902 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 04128e7..ab6e301 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-03  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug 4006: Load $GLOBALS['TSFE'] with image dimensions when IMG_RESOURCE is used (feature request!)
+
 2007-01-09  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Alphabetically sorted TS tree in TS Object Browser (Thanks to Ingo Renner)
index dbd0a66..b1ddd75 100755 (executable)
@@ -736,8 +736,8 @@ class tslib_cObj {
         * @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.']);
        }
 
        /**