hack to deal with no more $GLOBALS['egw_info']['theme']

This commit is contained in:
Ralf Becker 2006-12-17 10:44:10 +00:00
parent 4dd32a6cfd
commit fa996ab124

View File

@ -610,14 +610,18 @@
{ {
$currentcolor = @$GLOBALS['tr_color']; $currentcolor = @$GLOBALS['tr_color'];
} }
// this is for old apps relying on the old themes
if ($currentcolor == $GLOBALS['egw_info']['theme']['row_on']) $row_on_color = '" class="row_on';
$row_off_color = '" class="row_off';
if ($currentcolor == $row_on_color)
{ {
$GLOBALS['tr_color'] = $GLOBALS['egw_info']['theme'][$class='row_off']; $GLOBALS['tr_color'] = $row_off_color;
$class='row_off';
} }
else else
{ {
$GLOBALS['tr_color'] = $GLOBALS['egw_info']['theme'][$class='row_on']; $GLOBALS['tr_color'] = $row_on_color;
$class='row_on';
} }
return $do_class ? $class : $GLOBALS['tr_color']; return $do_class ? $class : $GLOBALS['tr_color'];