From: eldy <>
Date: Sat, 6 Jul 2002 00:24:55 +0000 (+0000)
Subject: Removed flag links with staticlinks option.
X-Git-Tag: AWSTATS_4_1_RELEASE~3
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d521fd3e801acb399decfc2927e3ee6388de7d;p=thirdparty%2FAWStats.git
Removed flag links with staticlinks option.
---
diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl
index d2b09252..e997fd38 100644
--- a/wwwroot/cgi-bin/awstats.pl
+++ b/wwwroot/cgi-bin/awstats.pl
@@ -466,7 +466,7 @@ EOF
print "$HTMLHeadSection\n";
print "
\n";
print "| AWStats\n";
- Show_Flag_Links($Lang);
+ if (! $StaticLinks) { Show_Flag_Links($Lang); }
print " | \n";
if ($LogoLink =~ "http://awstats.sourceforge.net") {
print " |
\n";
@@ -2473,7 +2473,6 @@ sub Show_Flag_Links {
my $CurrentLang = shift;
if ($ShowFlagLinks eq "0") { $ShowFlagLinks = ""; } # For backward compatibility
if ($ShowFlagLinks eq "1") { $ShowFlagLinks = "en fr de it nl es"; } # For backward compatibility
- my @flaglist=split(/\s+/,$ShowFlagLinks);
# Build flags link
my $NewLinkParams=$QueryString;
@@ -2489,7 +2488,7 @@ sub Show_Flag_Links {
}
print "
\n";
- foreach my $flag (@flaglist) {
+ foreach my $flag (split(/\s+/,$ShowFlagLinks)) {
if ($flag ne $CurrentLang) {
my $lng=$flag;
if ($flag eq "en") { $lng="English"; }