Project

General

Profile

Bug #24366 » 16780.diff

Administrator Admin, 2010-12-19 15:06

View differences:

t3lib/class.t3lib_extmgm.php (revision )
}
}
} else {
if (strstr($str, $typeDetails['showitem']) != FALSE) {
if (strpos($typeDetails['showitem'], $str) != FALSE) {
$fieldExists = TRUE;
} else {
foreach ($GLOBALS['TCA'][$table]['palettes'] as $palette => $paletteDetails) {
......
}
}
} else {
if (strstr($str, $typeDetails['showitem']) != FALSE) {
if (strpos($typeDetails['showitem'], $str) != FALSE) {
$fieldExists = TRUE;
} else if(is_array($GLOBALS['TCA'][$table]['palettes'])) {
foreach ($GLOBALS['TCA'][$table]['palettes'] as $palette => $paletteDetails) {
if (preg_match('/\b' . $palette . '\b/', $typeDetails['showitem']) != FALSE
&& strstr($str, $paletteDetails['showitem']) != FALSE) {
&& strpos($paletteDetails['showitem'], $str) != FALSE) {
$fieldExists = TRUE;
}
}
(1-1/2)