From 938ad78d6d2cac3c19587c83ea2bf9783e2e6b0f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 23 Aug 2008 10:29:37 -0400 Subject: [PATCH] Fix a $bugsys call and add $customfields to the template in showreport.php --- showreport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/showreport.php b/showreport.php index bdd11dc..591e00e 100644 --- a/showreport.php +++ b/showreport.php @@ -245,7 +245,7 @@ foreach ($words AS $word) { if (trim($word)) { - $word = preg_quote($bugsys->unsanitize($word)); + $word = preg_quote($input->unsanitize($word)); $hilight[] = $temp = trim(preg_replace('#[^0-9a-zA-Z_ ]#', '', $word)); } } @@ -357,7 +357,8 @@ $tpl->vars = array( 'comments' => $comments, 'select' => $select, 'vote' => $vote, - 'favoritetext' => $favoritetext + 'favoritetext' => $favoritetext, + 'customfields' => $customfields ); $tpl->evaluate()->flush(); -- 2.22.5