From 7fa3d193fc2fa49ed1f420a728d74be6f1d6c9f5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 26 Jun 2008 10:11:51 -0400 Subject: [PATCH] Get trackerhome_bits working --- includes/class_sort.php | 5 ++++- templates/trackerhome_bits.tpl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/class_sort.php b/includes/class_sort.php index ad10e6e..9d53cf3 100644 --- a/includes/class_sort.php +++ b/includes/class_sort.php @@ -440,7 +440,10 @@ class ListSorter } $tpl = new BSTemplate('trackerhome_bits'); - $tpl->vars = $bug; + $tpl->vars = array( + 'bug' => $bug, + 'fields'=> $fields + ); return $tpl->evaluate()->getTemplate(); } diff --git a/templates/trackerhome_bits.tpl b/templates/trackerhome_bits.tpl index 738a582..2a11c25 100644 --- a/templates/trackerhome_bits.tpl +++ b/templates/trackerhome_bits.tpl @@ -1,6 +1,6 @@ style="background-color: <%- $bug['bgcolor'] %><% if ($bug['hidden']): %>; font-style: italic<% endif %>"<% else: %> class="<%- $bug['bgcolor'] %>"<% if ($bug['hidden']): %> style="font-style: italic"<% endif %><% endif %>> -$fields +<%- $fields %> -- 2.22.5