From b5a64e6b7058b201c881760977d34e035290717a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 26 Jun 2008 12:19:54 -0400 Subject: [PATCH] Get showreport working * showreport.php * templates/showreport.tpl --- showreport.php | 11 +++++++++-- templates/showreport.tpl | 8 ++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/showreport.php b/showreport.php index 5f3a410..3873496 100644 --- a/showreport.php +++ b/showreport.php @@ -324,7 +324,9 @@ foreach ($comments_fetch as $comment) } } - eval('$comments .= "' . $template->fetch('showreport_comment') . '";'); + $tpl = new BSTemplate('showreport_comment'); + $tpl->vars = array('comment' => $comment); + $comments .= $tpl->evaluate()->getTemplate(); } $show['newreply'] = (can_perform('canpostcomments', $bug['productid']) ? true : false); @@ -340,7 +342,12 @@ if (is_array($hilight) AND !$show['edit']) } } -eval('$template->flush("' . $template->fetch('showreport') . '");'); +$tpl = new BSTemplate('showreport'); +$tpl->vars = array( + 'bug' => $bug, + 'comments' => $comments +); +$tpl->evaluate()->flush(); /*=====================================================================*\ || ################################################################### diff --git a/templates/showreport.tpl b/templates/showreport.tpl index 24a9e65..361a69b 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -10,7 +10,7 @@ -$header +<%- $header %>
@@ -128,7 +128,7 @@ $header <%-T("Assignment")%> $help[assignedto]
<% if ($show['assign']): %> - + <% else: %> <% if ($bug['assigninfo']): %><%- $bug['assigninfo'] %><% else: %>{@"- none -"}<% endif %> <% endif %> @@ -192,7 +192,7 @@ $header -
checked="checked"<% endif %> /> <%-T("Parse Links in the Comment")%>
+
in['parselinks']): %>> checked="checked"<% endif %> /> <%-T("Parse Links in the Comment")%>
@@ -225,7 +225,7 @@ $header <% endif %> -
fifty<% endif %><% else: %>hundred<% endif %><% endif %>"> +
<%-T("Votes")%> -- 2.22.5