From ca21883472d5ff0bec8331226cf26623bd9559e6 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 Content-Type: text/plain; charset=utf-8 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 --- 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.30.2