mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
hack to deal with no more $GLOBALS['egw_info']['theme']
This commit is contained in:
parent
4dd32a6cfd
commit
fa996ab124
@ -610,14 +610,18 @@
|
||||
{
|
||||
$currentcolor = @$GLOBALS['tr_color'];
|
||||
}
|
||||
|
||||
if ($currentcolor == $GLOBALS['egw_info']['theme']['row_on'])
|
||||
// this is for old apps relying on the old themes
|
||||
$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
|
||||
{
|
||||
$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'];
|
||||
|
Loading…
Reference in New Issue
Block a user