projects
/
Packages
/
TYPO3.CMS.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[TASK] Move NotFound icons to EXT:core
[Packages/TYPO3.CMS.git]
/
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
1be1e54
..
cb7f70b
100644
(file)
--- 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
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'])) {
if (!empty($GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib_png'])) {
- $im = imagecreatefrompng(
PATH_typo3 . 'gfx/notfound_thumb
.png');
+ $im = imagecreatefrompng(
$basePath . 'NotFound
.png');
} else {
} 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);
}
// Sets background color and print color.
$white = imageColorAllocate($im, 255, 255, 255);