From ce5fc001baaa9b705cef57e292e123003c2f2957 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 --- 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 a397d62ee05..309c49db314 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.25.1