Project

General

Profile

Bug #24248 » 16620.patch

Administrator Admin, 2010-12-01 23:10

View differences:

t3lib/class.t3lib_iconworks.php (working copy)
}
}
krsort($recordType);
foreach ($recordType as $iconName) {
if (in_array($iconName, $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'])) {
return $iconName;
if (is_array($GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'])) {
foreach ($recordType as $iconName) {
if (in_array($iconName, $GLOBALS['TBE_STYLES']['spriteIconApi']['iconsAvailable'])) {
return $iconName;
}
}
}
return 'status-status-icon-missing';
......
$priorities = $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'];
$iconName = '';
foreach ($priorities as $priority) {
if ($status[$priority]) {
$iconName = $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'][$priority];
break;
if (is_array($priorities)) {
foreach ($priorities as $priority) {
if ($status[$priority]) {
$iconName = $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'][$priority];
break;
}
}
}
return $iconName;
}
(1-1/2)