From 8c92398d77e45ecd75c359d94962b27717f3d1aa Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Fri, 7 May 2021 14:25:11 -0600 Subject: [PATCH] Bug 28304 - quiet a warning from C4/Templates Content-Type: text/plain; charset="utf-8" Change the code in C4/Templates::new() which I presume initialized an instance variable for caching. This call ends up calling a package method instead. --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 30ebaef9f8..3df60a2aa4 100644 --- a/C4/Templates.pm +++ b/C4/Templates.pm @@ -82,7 +82,7 @@ sub new { bless $self, $class; $self->theme($theme); $self->lang($lang); - $self->activethemes($activethemes); + $self->{VARS}->{"activethemes"} = $activethemes; $self->preferredtheme($activethemes->[0]); $self->filename($filename); $self->htdocs($htdocs); -- 2.25.1