From 16480be3213cd414880ca070bd0e389652ddc98a Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 31 May 2023 07:00:13 +0000 Subject: [PATCH] Bug 33870: Make $MAX in Sitemapper::Writer global This should preferably not be a lexical variable (in case we ever should call this under Plack). A global variable will also simplify testing (see next patch). Signed-off-by: Marcel de Rooy Signed-off-by: Pedro Amorim Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- Koha/Sitemapper/Writer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Sitemapper/Writer.pm b/Koha/Sitemapper/Writer.pm index a397d62ee0..309c49db31 100644 --- a/Koha/Sitemapper/Writer.pm +++ b/Koha/Sitemapper/Writer.pm @@ -26,7 +26,7 @@ use IO::File; use Koha::DateUtils qw( dt_from_string ); -my $MAX = 50000; +our $MAX = 50000; has sitemapper => (is => 'rw', ); -- 2.39.5