Bugzilla – Attachment 130212 Details for
Bug 29684
Warning File not found: js/locale_data.js
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29684: add honeypot to catch other warnings in the future
Bug-29684-add-honeypot-to-catch-other-warnings-in-.patch (text/plain), 1.02 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-02-07 11:44:43 UTC
(
hide
)
Description:
Bug 29684: add honeypot to catch other warnings in the future
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-02-07 11:44:43 UTC
Size:
1.02 KB
patch
obsolete
>From ff875cdd8c0dcc6892cb6bd87fee1c29cf909346 Mon Sep 17 00:00:00 2001 >From: Petro Vashchuk <stalkernoid@gmail.com> >Date: Mon, 17 Jan 2022 16:38:53 +0200 >Subject: [PATCH] Bug 29684: add honeypot to catch other warnings in the future > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Templates.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/C4/Templates.pm b/C4/Templates.pm >index d41c9b534e..53e1dc5073 100644 >--- a/C4/Templates.pm >+++ b/C4/Templates.pm >@@ -113,6 +113,12 @@ sub output { > $vars->{opaclayoutstylesheet} = > C4::Context->preference('opaclayoutstylesheet'); > >+ if(exists $self->{VARS}{lang}) { >+ warn "Preventing \$template->lang='" . ($self->{vars}{lang}//'-undef-') >+ . "' to be overwritten by template->{VARS}{lang}='" . ($self->{VARS}{lang}//'-undef-') . "'"; >+ delete $self->{VARS}{lang}; >+ } >+ > # add variables set via param to $vars for processing > $vars = { %$vars, %{ $self->{VARS} } }; > >-- >2.32.0
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 29684
:
128571
|
128675
|
129532
|
129534
|
129536
|
130184
|
130185
|
130186
|
130210
|
130211
|
130212
|
130413
|
130417
|
130421
|
130477
|
131510
|
131511
|
131512
|
131513
|
131514
|
131515