From fa996ab1246c4e2fbce371437e1165a35bcf16df Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 17 Dec 2006 10:44:10 +0000 Subject: [PATCH] hack to deal with no more $GLOBALS['egw_info']['theme'] --- phpgwapi/inc/class.nextmatchs.inc.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index 1d08b9ea0c..2ddb3cca29 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -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'];