Bug #18431 » 7837.diff
t3lib/class.t3lib_iconworks.php (working copy) | ||
---|---|---|
global $TCA, $PAGES_TYPES, $ICON_TYPES;
|
||
// Flags:
|
||
$doNotGenerateIcon = $GLOBALS['TYPO3_CONF_VARS']['GFX']['noIconProc']; // If set, the icon will NOT be generated with GDlib. Rather the icon will be looked for as [iconfilename]_X.[extension]
|
||
$doNotRenderUserGroupNumber = TRUE; // If set, then the usergroup number will NOT be printed unto the icon. NOTICE. the icon is generated only if a default icon for groups is not found... So effectively this is ineffective...
|
||
// Shadow:
|
||
... | ... | |
// Check if tagged icon file name exists (a tagget icon means the icon base name with the flags added between body and extension of the filename, prefixed with underscore)
|
||
if (@is_file(dirname($absfile).'/'.$iconFileName_stateTagged)) { // Look for [iconname]_xxxx.[ext]
|
||
return dirname($iconfile).'/'.$iconFileName_stateTagged;
|
||
} elseif ($doNotGenerateIcon) { // If no icon generation can be done, try to look for the _X icon:
|
||
$iconFileName_X = ereg_replace('.([[:alnum:]]+)$','__x.\1',basename($iconfile));
|
||
if (@is_file(dirname($absfile).'/'.$iconFileName_X)) {
|
||
return dirname($iconfile).'/'.$iconFileName_X;
|
||
} else {
|
||
return 'gfx/i/no_icon_found.gif';
|
||
}
|
||
} else { // Otherwise, create the icon:
|
||
$theRes = t3lib_iconWorks::makeIcon($GLOBALS['BACK_PATH'].$iconfile, $string, $user, $protectSection, $absfile, $iconFileName_stateTagged);
|
||
return $theRes;
|
t3lib/config_default.php (working copy) | ||
---|---|---|
'image_processing' => 1, // Boolean. Enables image processing features. Disabling this means NO image processing with either GD or IM!
|
||
'thumbnails' => 1, // Boolean. Enables the use of thumbnails in the backend interface. Thumbnails are generated by IM/partly GD in the file typo3/thumbs.php
|
||
'thumbnails_png' => 0, // Bits. Bit0: If set, thumbnails from non-jpegs will be 'png', otherwise 'gif' (0=gif/1=png). Bit1: Even JPG's will be converted to png or gif (2=gif/3=png)
|
||
'noIconProc' => 1, // Boolean. If true, icons are never processed with overlays for hidden, starttime, endtime etc. They must be available pre-processed. If this is disabled, do so only if you have full image processing capabilities on the server for TYPO3.
|
||
'gif_compress' => 1, // Boolean. Enables the use of the t3lib_div::gif_compress() workaround function for compressing giffiles made with GD or IM, which probably use only RLE or no compression at all.
|
||
'imagefile_ext' => 'gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai', // Commalist of file extensions perceived as images by TYPO3. List should be set to 'gif,png,jpeg,jpg' if IM is not available. Lowercase and no spaces between!
|
||