Fixed bug #10744: Icon path calculated incorrectly in t3lib_tceforms->getIcon()
authorJeff Segars <jsegars@alumni.rice.edu>
Thu, 28 May 2009 21:47:21 +0000 (21:47 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Thu, 28 May 2009 21:47:21 +0000 (21:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5511 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index c3861b1..a39084e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-28  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #10744: Icon path calculated incorrectly in t3lib_tceforms->getIcon()
+
 2009-05-28  Steffen Kamper  <info@sk-typo3.de>
 
        * Added feature #11207 Hook in typo3/class.webPageTree.php -> wrapTitle
index 9e9de87..2a223c8 100644 (file)
@@ -3885,7 +3885,8 @@ class t3lib_TCEforms      {
                        $selIconInfo = @getimagesize(PATH_typo3.$icon);
                } else {
                        $selIconFile = t3lib_iconWorks::skinImg($this->backPath,'gfx/'.$icon,'',1);
-                       $selIconInfo = @getimagesize(PATH_typo3.$selIconFile);
+                       $iconPath = substr($selIconFile, strlen($this->backPath));
+                       $selIconInfo = @getimagesize(PATH_typo3 . $iconPath);
                }
                return array($selIconFile,$selIconInfo);
        }