[SimBot-commits] CVS: simbot/plugins httpd.pl,1.11,1.12
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2005-08-10 03:22:03
|
Update of /cvsroot/simbot/simbot/plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1145/plugins Modified Files: httpd.pl Log Message: The sb_version and sb_link params in the templates now work. Index: httpd.pl =================================================================== RCS file: /cvsroot/simbot/simbot/plugins/httpd.pl,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -p -r1.11 -r1.12 --- httpd.pl 9 Aug 2005 01:12:59 -0000 1.11 +++ httpd.pl 9 Aug 2005 01:32:36 -0000 1.12 @@ -115,11 +115,16 @@ sub get_template { return; } - return HTML::Template->new( filename => $file_name, + my $templ_obj = HTML::Template->new( filename => $file_name, die_on_bad_params => 0, case_sensitive => 1, loop_context_vars => 1, ); + $templ_obj->param( + sb_version => &SimBot::PROJECT . ' ' . &SimBot::VERSION, + sb_link => &SimBot::HOME_PAGE, + ); + return $templ_obj; } sub admin_page { |