Bugzilla – Attachment 168963 Details for
Bug 36357
Add Template::Toolkit filters for internationalization (I18N)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36357: Use "use" instead of "require"
Bug-36357-Use-use-instead-of-require.patch (text/plain), 996 bytes, created by
Julian Maurice
on 2024-07-15 07:08:17 UTC
(
hide
)
Description:
Bug 36357: Use "use" instead of "require"
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2024-07-15 07:08:17 UTC
Size:
996 bytes
patch
obsolete
>From 6f0fb3eff02f8248cebe7b31468805dc4461a378 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36357
:
163380
|
163381
|
163521
|
163522
|
163523
|
163524
|
163597
|
168955
|
168956
|
168957
|
168958
|
168959
|
168962
| 168963