From fd1611b59e39effc91caa9c2eb86a52ad2582ee5 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 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. Signed-off-by: Owen Leonard --- C4/Templates.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Templates.pm b/C4/Templates.pm index 2aeedf662e..48511086ea 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.11.0