From 6f0fb3eff02f8248cebe7b31468805dc4461a378 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 15 Jul 2024 09:07:49 +0200 Subject: [PATCH] Bug 36357: Use "use" instead of "require" --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 9495645daa..00bf31fc94 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -6,6 +6,7 @@ use Carp qw( carp ); use CGI qw ( -utf8 ); use List::MoreUtils qw( uniq ); use Template::Filters; +use Koha::Template::Filters::I18N; # Copyright 2009 Chris Cormack and The Koha Dev Team # @@ -71,7 +72,6 @@ sub new { # Do not use template cache if script is called from commandline my $use_template_cache = C4::Context->config('template_cache_dir') && defined $ENV{GATEWAY_INTERFACE}; - require Koha::Template::Filters::I18N; my $template = Template->new( { EVAL_PERL => 1, ABSOLUTE => 1, -- 2.39.2