Bugzilla – Attachment 180382 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), 1008 bytes, created by
Julian Maurice
on 2025-04-02 13:49:40 UTC
(
hide
)
Description:
Bug 36357: Use "use" instead of "require"
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2025-04-02 13:49:40 UTC
Size:
1008 bytes
patch
obsolete
>From 4e21edeed2132aa8fa31e9bd28acb8163f4dce14 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 b6c09f2270..e88ed70397 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, >-- >2.39.5
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
|
180376
|
180377
|
180378
|
180379
|
180380
|
180381
| 180382