]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Run subpage generation for geoip2_city only 194/head
authorKent Varmedal <kent@varmedal.no>
Fri, 27 Nov 2020 09:05:58 +0000 (10:05 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Nov 2020 09:05:58 +0000 (10:05 +0100)
As geoip2_country doesn't have AddHTMLGraph_geoip2_country, it should only generate subpage for geoip2_city.

tools/awstats_buildstaticpages.pl

index e5af4d702a853c39188147bd26b4384902450b94..ad5a7de3969b0243e78700c885e91c3cd20f041b 100755 (executable)
@@ -370,7 +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
+       if ($_ =~ /^(geoip2_city)\s/) { push @OutputList,'plugin_'.$1; }        # Add geoip2 maxmind subpages
 }