forked from extern/egroupware
fixed template_alternate_row_color, so also set the row_color in the supplied template, not only in the template of the nextmatch-class
This commit is contained in:
parent
54b5310818
commit
f81afd60a9
@ -762,7 +762,11 @@
|
||||
*/
|
||||
function template_alternate_row_color(&$tpl)
|
||||
{
|
||||
$this->template->set_var('tr_color',$this->alternate_row_color());
|
||||
$this->template->set_var('tr_color',$color = $this->alternate_row_color());
|
||||
if (is_object($tpl))
|
||||
{
|
||||
$tpl->set_var('tr_color',$color); // set the supplied template too
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user