From: Jeff Segars Date: Fri, 17 Dec 2010 15:19:33 +0000 (+0000) Subject: Fixed bug #16703: TCEForms->getIconHTML() does not resolve back paths before checking... X-Git-Tag: TYPO3_4-5-0beta3~97 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/d345ec397aa831a6f8bc99d0cde2d3792b603aea Fixed bug #16703: TCEForms->getIconHTML() does not resolve back paths before checking static files git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9829 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 78fcca72bd46..dab8feb5443d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-12-17 Jeff Segars + + * Fixed bug #16703: TCEForms->getIconHTML() does not resolve back paths before checking static files + 2010-12-17 Benjamin Mack * Fixed bug #9002: exec_SELECTquery() has wrong documentation: Third parameter (WHERE clause) is NOT optional diff --git a/t3lib/class.t3lib_tceforms.php b/t3lib/class.t3lib_tceforms.php index e55c68cbf565..a25db7955d74 100644 --- a/t3lib/class.t3lib_tceforms.php +++ b/t3lib/class.t3lib_tceforms.php @@ -4161,7 +4161,7 @@ class t3lib_TCEforms { */ protected function getIconHtml($icon, $alt = '', $title = '') { $iconArray = $this->getIcon($icon); - if (is_file(PATH_typo3 . $iconArray[0])) { + if (is_file(t3lib_div::resolveBackPath(PATH_typo3 . $iconArray[0]))) { return '' . $alt . ''; } else { return t3lib_iconWorks::getSpriteIcon($icon, array('alt'=> $alt, 'title'=> $title));