Project

General

Profile

Bug #20883 » 11718v3.diff

Administrator Admin, 2009-08-14 14:14

View differences:

t3lib/class.t3lib_iconworks.php (working copy)
* @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.
......
$output = $wHattribs;
break;
}
$cachedSkinImages[$imageId] = $output;
return $output;
}
}
(1-1/2)