From d345ec397aa831a6f8bc99d0cde2d3792b603aea Mon Sep 17 00:00:00 2001 From: Jeff Segars Date: Fri, 17 Dec 2010 15:19:33 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ t3lib/class.t3lib_tceforms.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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)); -- 2.20.1