X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/673c249f0bcaa4bbb8cfcf1cfcdbc16d90b70b62..5919e1c2c87e7681c8811fdf877ab5e1525c16fb:/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php diff --git a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php index 1be1e54b91bd..cb7f70b4c0b9 100644 --- a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php +++ b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php @@ -2995,10 +2995,11 @@ class GraphicalFunctions { throw new \RuntimeException('TYPO3 Fatal Error: No gdlib. ' . $textline1 . ' ' . $textline2 . ' ' . $textline3, 1270853952); } // Creates the basis for the error image + $basePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('core') . 'Resources/Public/Images/'; if (!empty($GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'])) { - $im = imagecreatefrompng(PATH_typo3 . 'gfx/notfound_thumb.png'); + $im = imagecreatefrompng($basePath . 'NotFound.png'); } else { - $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);