Project

General

Profile

Bug #22024 » t3lib_fullsearch-cleanup.patch

Administrator Admin, 2010-01-29 08:12

View differences:

t3lib/class.t3lib_fullsearch.php (Arbeitskopie)
*/
function resultRowTitles($row,$conf,$table) {
$SET = $GLOBALS['SOBE']->MOD_SETTINGS;
$out='<tr class="bgColor5">';
$out = '<thead><tr class="bgColor5">';
reset($row);
while(list($fN,$fV)=each($row)) {
if (t3lib_div::inList($SET['queryFields'], $fN) || (!$SET['queryFields'] && $fN!='pid' && $fN!='deleted')) {
if (strlen($fV) < 50) $TDparams = ' nowrap';
else $TDparams = '';
if (t3lib_div::inList($SET['queryFields'], $fN) || (!$SET['queryFields'] && $fN != 'pid' && $fN != 'deleted')) {
$TDparams = (strlen($fV) < 50) ? ' nowrap' : '';
if ($GLOBALS['SOBE']->MOD_SETTINGS['search_result_labels']) {
$out.='<td'.$TDparams.'><strong>'.$GLOBALS['LANG']->sL($conf['columns'][$fN]['label']?$conf['columns'][$fN]['label']:$fN,1).'</strong></td>';
$title = $GLOBALS['LANG']->sL($conf['columns'][$fN]['label'] ? $conf['columns'][$fN]['label'] : $fN, 1);
} else {
$out.='<td'.$TDparams.'><strong>'.$GLOBALS['LANG']->sL($fN, 1).'</strong></td>';
$title = $GLOBALS['LANG']->sL($fN, 1);
}
$out.= '<th' . $TDparams . '>' . $title . '</th>';
}
}
$out.='<td nowrap></td>
</tr>
$out.='<td nowrap="nowrap"></td>
</tr></thead>
';
return $out;
}
(1-1/3)