Fixed construct_user_display()
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 14:24:33 +0000 (10:24 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 14:24:33 +0000 (10:24 -0400)
* includes/functions.php

includes/functions.php

index f72be5fc5ab8d39de48cd247b59ee9cf3e5eded7..aec184aa625f9b53700ddadcf3008953314ca44a 100755 (executable)
@@ -73,7 +73,9 @@ function construct_user_display($userinfo, $html = true)
        
        if ($html)
        {
-               eval('$username = "' . $bugsys->template->fetch('username_display') . '";');
+               $tpl = new BSTemplate('username_display');
+               $tpl->vars = array('userinfo' => $userinfo);
+               $username = $tpl->evaluate()->getTemplate();
        }
        else
        {