Fix a $bugsys call and add $customfields to the template in showreport.php
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 14:29:37 +0000 (10:29 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 23 Aug 2008 14:29:37 +0000 (10:29 -0400)
showreport.php

index bdd11dcf7abc202c0faeffd4eee10b1851ec02ca..591e00ebded112f1ac0edf4eb36a775015360ca1 100644 (file)
@@ -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();