]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Build static page for geoip2 package
authorKent Varmedal <kent@varmedal.no>
Fri, 27 Nov 2020 07:58:11 +0000 (08:58 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Nov 2020 07:58:11 +0000 (08:58 +0100)
When building static pages the subpage for geoip2 plugin was not created. This change adds the plugin to the Output List if the plugin is loaded.

tools/awstats_buildstaticpages.pl

index 3ca62b25a2928f31330b68b7ba0f945655b900e2..e5af4d702a853c39188147bd26b4384902450b94 100755 (executable)
@@ -370,6 +370,7 @@ foreach my $extranum (1..@ExtraName-1) {
 #Add plugins
 foreach ( @PluginsToLoad ) {
        if ($_ =~ /^(geoip_[_a-z]+)\s/) { push @OutputList,'plugin_'.$1; }      # Add geoip maxmind subpages
+       if ($_ =~ /^(geoip2_[_a-z]+)\s/) { push @OutputList,'plugin_'.$1; }     # Add geoip2 maxmind subpages
 }