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:
Ralf Becker 2003-05-01 09:17:44 +00:00
parent 54b5310818
commit f81afd60a9

View File

@ -762,7 +762,11 @@
*/ */
function template_alternate_row_color(&$tpl) 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
}
} }
/*! /*!