From: eldy <> Date: Sat, 6 Sep 2003 19:26:30 +0000 (+0000) Subject: Fixed not working timezone plugin with 5.7. X-Git-Tag: AWSTATS_WEBMIN_1_0_RELEASE~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25a576c0190398aefd59959bb3a21e7ec2b2edde;p=thirdparty%2FAWStats.git Fixed not working timezone plugin with 5.7. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index 4c348e8c..5d0a7d04 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -14,6 +14,7 @@ Fixes: When a mail is sent to 2 different receivers, report 2 records instead of 1. When a forward is active, report the original receiver, not the "forwarded to". +- Fixed not working timezone plugin with 5.7. New features/improvements: - Added %lognamequot tag for LogFormat parameter. diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 59321f60..e2b32119 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1700,7 +1700,7 @@ sub Read_Plugins { # Other possible directories : "./plugins" my @PossiblePluginsDir=("${DIR}plugins","./plugins","/usr/local/awstats/wwwroot/cgi-bin/plugins","/usr/share/awstats/plugins"); - if ($Debug) { debug("Call to Read_Plugins with list: @PluginsToLoad"); } + if ($Debug) { debug("Call to Read_Plugins with list: ".join(',',@PluginsToLoad)); } foreach my $plugininfo (@PluginsToLoad) { if ($NoLoadPlugin{$plugininfo}) { if ($Debug) { debug(" Plugin load for '$plugininfo' has been disabled from command line"); } @@ -1714,7 +1714,7 @@ sub Read_Plugins { if ($pluginname) { if (! $PluginsLoaded{'init'}{"$pluginname"}) { # Plugin not already loaded my %pluginisfor=('tooltips'=>'o','ipv6'=>'u','hashfiles'=>'u','geoip'=>'u', - 'geoipfree'=>'u','hostinfo'=>'o','userinfo'=>'o','urlalias'=>'o','timehires'=>'u','timezone'=>'o'); + 'geoipfree'=>'u','hostinfo'=>'o','userinfo'=>'o','urlalias'=>'o','timehires'=>'u','timezone'=>'ou'); if ($pluginisfor{$pluginname}) { # Do not load "update plugins" if output only if (! $UpdateStats && scalar keys %HTMLOutput && $pluginisfor{$pluginname} !~ /o/) { $PluginsLoaded{'init'}{"$pluginname"}=1; next; }