From 6991af01260716a732a685f1992474175133003b Mon Sep 17 00:00:00 2001 From: Wouter Wolters <typo3@wouterwolters.nl> Date: Tue, 12 Jan 2016 11:37:53 +0100 Subject: [PATCH] [BUGFIX] NotFound image uses wrong path in frontend Resolves: #72646 Releases: master,7.6 Change-Id: I5242c35a2af4e7ab7bef6015beb2ffb2e78536d4 Reviewed-on: https://review.typo3.org/45827 Reviewed-by: Susanne Moog <typo3@susannemoog.de> Tested-by: Susanne Moog <typo3@susannemoog.de> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> --- .../frontend/Classes/ContentObject/ContentObjectRenderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index ff12fb0c15b7..ee905f8d142f 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -4168,7 +4168,7 @@ class ContentObjectRenderer if ($conf['iconCObject']) { $icon = $this->cObjGetSingle($conf['iconCObject'], $conf['iconCObject.'], 'iconCObject'); } else { - $notFoundThumb = ExtensionManagementUtility::extPath('core') . 'Resources/Public/Images/NotFound.gif'; + $notFoundThumb = ExtensionManagementUtility::siteRelPath('core') . 'Resources/Public/Images/NotFound.gif'; $sizeParts = array(64, 64); if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails']) { // using the File Abstraction Layer to generate a preview image @@ -4201,7 +4201,7 @@ class ContentObjectRenderer $urlPrefix = $tsfe->absRefPrefix; } $icon = '<img src="' . htmlspecialchars($urlPrefix . $icon) . '"' . - 'width="' . (int)$sizeParts[0] . '" height="' . (int)$sizeParts[1] . '" ' . + ' width="' . (int)$sizeParts[0] . '" height="' . (int)$sizeParts[1] . '" ' . $this->getBorderAttr(' border="0"') . '' . $this->getAltParam($conf) . ' />'; } } else { -- GitLab