Index: t3lib/class.t3lib_iconworks.php =================================================================== --- t3lib/class.t3lib_iconworks.php (revision 3592) +++ t3lib/class.t3lib_iconworks.php (working copy) @@ -244,7 +244,7 @@ $iconFileName_stateTagged = ereg_replace('.([[:alnum:]]+)$', '__'.$flags.'.\1', basename($iconfile)); // 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] + if ($doNotGenerateIcon && @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)); @@ -522,4 +522,4 @@ } } } -?> \ No newline at end of file +?>