Get quicksearch working on showreport.php
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 20:33:23 +0000 (16:33 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 20:33:23 +0000 (16:33 -0400)
showreport.php
templates/quicksearch.tpl

index fac0811323e6571c5d7c22f13e68e8d1891b8fb0..b0dfb472e2f6df24f2a995f8f8fe141db5ca7859 100644 (file)
@@ -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;
 }
 
index ac3a0ced1f18bc6350db7837d56e6e0e63eae843..f5d9eab15f38bf5b6311f313ff18269a5ab163fb 100644 (file)
@@ -16,7 +16,7 @@
 
                <div class="box-mid box-overpad" style="text-align: <%- $stylevar['left'] %>">
                        <% if ($error): %>
-                               <div class="error" style="margin-bottom: 5px; text-align: <%- $stylevar['left'] %>">$error</div>
+                               <div class="error" style="margin-bottom: 5px; text-align: <%- $stylevar['left'] %>"><%- $error %></div>
                        <% endif %>
 
                        <form name="quicksearch" action="showreport.php" method="post" class="form">
@@ -29,4 +29,4 @@
        </div>
 </div>
 
-$footer
\ No newline at end of file
+<%- $footer %>
\ No newline at end of file