From 2e5537d2888de643d83f159425da19d612904fd8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 23 Aug 2008 16:33:23 -0400 Subject: [PATCH] Get quicksearch working on showreport.php --- showreport.php | 4 +++- templates/quicksearch.tpl | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/showreport.php b/showreport.php index fac0811..b0dfb47 100644 --- a/showreport.php +++ b/showreport.php @@ -53,7 +53,9 @@ if (empty($bugid) OR $_REQUEST['do'] == 'quicksearch') } } - eval('$template->flush("' . $template->fetch('quicksearch') . '");'); + $tpl = new BSTemplate('quicksearch'); + $tpl->vars = array('error' => $error); + $tpl->evaluate()->flush(); exit; } diff --git a/templates/quicksearch.tpl b/templates/quicksearch.tpl index ac3a0ce..f5d9eab 100644 --- a/templates/quicksearch.tpl +++ b/templates/quicksearch.tpl @@ -16,7 +16,7 @@
<% if ($error): %> -
$error
+
<%- $error %>
<% endif %>
@@ -29,4 +29,4 @@
-$footer \ No newline at end of file +<%- $footer %> \ No newline at end of file -- 2.43.5