X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/73f2498331782691215bb4cc02fc4431145b7027..9229d49c57fb972c6058c98b94cfdb86feca2bd2:/modules/Output.pm diff --git a/modules/Output.pm b/modules/Output.pm index 5fd22bf..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-13 +# 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("DIR",$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;