Index: t3lib/class.t3lib_iconworks.php =================================================================== --- t3lib/class.t3lib_iconworks.php (revision 5779) +++ t3lib/class.t3lib_iconworks.php (working copy) @@ -279,10 +279,15 @@ * @see skinImgFile() */ public static function skinImg($backPath, $src, $wHattribs = '', $outputMode = 0) { + static $cachedSkinImages = array(); + + $imageId = md5($backPath . $src . $wHattribs . $outputMode); + if (isset($cachedSkinImages[$imageId])) { + return $cachedSkinImages[$imageId]; + } else { // Setting source key. If the icon is refered to inside an extension, we homogenize the prefix to "ext/": $srcKey = preg_replace('/^(\.\.\/typo3conf\/ext|sysext|ext)\//', 'ext/', $src); -#if ($src!=$srcKey)debug(array($src, $srcKey)); // LOOKING for alternative icons: if ($GLOBALS['TBE_STYLES']['skinImg'][$srcKey]) { // Slower or faster with is_array()? Could be used. @@ -340,7 +345,11 @@ $output = $wHattribs; break; } + + $cachedSkinImages[$imageId] = $output; return $output; + + } }