Switch the 'modify' code of admin/field.php to use templates
[bugdar.git] / help.php
index edad78975918f9f5a4865b0e0cf6f234d378aa5e..29ed753dfc49b9be02d9e7f07156b385a4d3f63e 100644 (file)
--- a/help.php
+++ b/help.php
@@ -2,7 +2,7 @@
 /*=====================================================================*\
 || ###################################################################
 || # Bugdar
-|| # Copyright ©2002-2007 Blue Static
+|| # Copyright (c)2004-2009 Blue Static
 || #
 || # This program is free software; you can redistribute it and/or modify
 || # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,6 @@ $fetchtemplates = array(
        'help_window'
 );
 
-define('SVN', '$Id$');
 
 require_once('./global.php');
 
@@ -38,12 +37,8 @@ else
        $topic['body'] = nl2br($topic['body']);
 }
 
-eval('$template->flush("' . $template->fetch('help_window') . '");');
+$tpl = new BSTemplate('help_window');
+$tpl->vars = array('topic' => $topic);
+$tpl->evaluate()->flush();
 
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
 ?>
\ No newline at end of file