[TASK] Move NotFound icons to EXT:core
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / ThumbnailView.php
index 7a4bee0..379ce2d 100644 (file)
@@ -263,12 +263,13 @@ class ThumbnailView {
                        throw new \RuntimeException('TYPO3 Fatal Error: No gdlib. ' . $l1 . ' ' . $l2 . ' ' . $l3, 1270853954);
                }
                // Creates the basis for the error image
+               $basePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('core') . 'Resources/Public/Images/';
                if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png']) {
                        header('Content-type: image/png');
-                       $im = imagecreatefrompng(PATH_typo3 . 'gfx/notfound_thumb.png');
+                       $im = imagecreatefrompng($basePath . 'NotFound.png');
                } else {
                        header('Content-type: image/gif');
-                       $im = imagecreatefromgif(PATH_typo3 . 'gfx/notfound_thumb.gif');
+                       $im = imagecreatefromgif($basePath . 'NotFound.gif');
                }
                // Sets background color and print color.
                $white = imageColorAllocate($im, 255, 255, 255);