From: Adam Date: Thu, 20 Nov 2014 18:50:40 +0000 (-0800) Subject: - #878 Fixed size of MAP section (there are 27 base sections, not 26) X-Git-Tag: AWSTATS_7_5~60^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6a37e0f9ee70d415602c7658ccf49122503506d;p=thirdparty%2FAWStats.git - #878 Fixed size of MAP section (there are 27 base sections, not 26) --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 89be6a0d..a5644f1e 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -6256,7 +6256,7 @@ sub Save_History { "# also remove completely the MAP section (AWStats will rewrite it at next\n"; print HISTORYTMP "# update).\n"; print HISTORYTMP "${xmlbb}BEGIN_MAP${xmlbs}" - . ( 26 + ( scalar keys %TrapInfosForHTTPErrorCodes ) + + . ( 27 + ( scalar keys %TrapInfosForHTTPErrorCodes ) + ( scalar @ExtraName ? scalar @ExtraName - 1 : 0 ) + ( scalar keys %{ $PluginsLoaded{'SectionInitHashArray'} } ) ) . "${xmlbe}\n";