X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/4fb80b78acb8c336200b5fe20403bcb94c0aed98..7897c609d415e2362b8c42c3b918a7ebcb5c4bda:/modules/Output.pm?ds=sidebyside diff --git a/modules/Output.pm b/modules/Output.pm index 9ab8697..7248922 100644 --- a/modules/Output.pm +++ b/modules/Output.pm @@ -5,8 +5,8 @@ package Output; # # HTML generating routines # -# Author: Patrick Canterino -# Last modified: 2004-11-26 +# Author: Patrick Canterino +# Last modified: 2005-01-06 # use strict; @@ -14,8 +14,6 @@ use strict; use vars qw(@EXPORT); use CGI qw(header); -use Tool; - use HTML::Entities; use Template; @@ -58,13 +56,13 @@ sub error($;$$) my $tpl = new Template; $tpl->read_file($tpl_error); - $tpl->fillin("ERROR",$message); - $tpl->fillin("BACK",$path); - $tpl->fillin("SCRIPT",encode_entities($ENV{'SCRIPT_NAME'})); + $tpl->fillin('ERROR',$message); + $tpl->fillin('BACK',$path); + $tpl->fillin('SCRIPT',encode_entities($ENV{'SCRIPT_NAME'})); - $tpl->parse_if_block("dir",defined $path); + $tpl->parse_if_block('dir',defined $path); - if(ref($vars) eq "HASH") + if(ref($vars) eq 'HASH') { while(my ($key,$value) = each(%$vars)) { @@ -72,7 +70,7 @@ sub error($;$$) } } - my $output = header(-type => "text/html"); + my $output = header(-type => 'text/html'); $output .= $tpl->get_template; return \$output;