X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d4f9d559a4a4d5e8fa2bb10be268e24634169b5e..08388ac8eaff0dbecfe5aded36e8cf297466cd57:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index b0e25d70d..468f6dc27 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -841,23 +841,14 @@ sub parse_html_template { 'CACHE_SIZE' => 0, 'PLUGIN_BASE' => 'SL::Template::Plugin', 'INCLUDE_PATH' => '.:templates/webpages', + 'COMPILE_EXT' => $main::template_compile_ext, + 'COMPILE_DIR' => $main::template_compile_dir, }) || die; map { $additional_params->{$_} ||= $self->{$_} } keys %{ $self }; - my $in = IO::File->new($file, 'r'); - - if (!$in) { - print STDERR "Error opening template file: $!"; - $main::lxdebug->leave_sub(); - return ''; - } - - my $input = join('', <$in>); - $in->close(); - my $output; - if (!$template->process(\$input, $additional_params, \$output)) { + if (!$template->process($file, $additional_params, \$output)) { print STDERR $template->error(); }