my $processor_key = $as_xml ? 'xml:' : 'text:'; # separate by XML strictness
$processor_key .= $ctx->{hostname}.':'; # ... and vhost
$processor_key .= $r->dir_config('OILSWebContextLoader').':'; # ... and context loader
- $processor_key .= $uri_section.':'.$ctx->{locale}; # ... and locale
+ $processor_key .= $ctx->{locale}; # ... and locale
# NOTE: context loader and vhost together imply template path and debug template values
# TODO: maybe add STAT_TTL and cache dir from LP#1449709?
$vhost_processor_cache{$processor_key} = $tt;
$ctx->{encode_utf8} = sub {return encode_utf8(shift())};
- unless($tt->process($template, {ctx => $ctx, ENV => \%ENV, l => $text_handler})) {
+ unless($tt->process($template, {ctx => $ctx, ENV => \%ENV, l => $text_handler}, $r)) {
$r->log->warn('egweb: template error: ' . $tt->error);
return Apache2::Const::HTTP_INTERNAL_SERVER_ERROR;
}