From: eldy <> Date: Wed, 27 Oct 2004 20:54:08 +0000 (+0000) Subject: Plugins that add info in reports are called in sorted order. X-Git-Tag: AWSTATS_6_3_RELEASE~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1f5edb563bf36b9b6ff386aa39e2a6478755969;p=thirdparty%2FAWStats.git Plugins that add info in reports are called in sorted order. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 517d5322..dbe6b2e6 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -4728,7 +4728,7 @@ sub ShowFormFilter { sub ShowUserInfo { my $user=shift; # Call to plugins' function ShowInfoUser - foreach my $pluginname (keys %{$PluginsLoaded{'ShowInfoUser'}}) { + foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoUser'}}) { my $function="ShowInfoUser_$pluginname('$user')"; eval("$function"); } @@ -4744,7 +4744,7 @@ sub ShowUserInfo { sub ShowClusterInfo { my $user=shift; # Call to plugins' function ShowInfoCluster - foreach my $pluginname (keys %{$PluginsLoaded{'ShowInfoCluster'}}) { + foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoCluster'}}) { my $function="ShowInfoCluster_$pluginname('$user')"; eval("$function"); } @@ -4760,7 +4760,7 @@ sub ShowClusterInfo { sub ShowHostInfo { my $host=shift; # Call to plugins' function ShowInfoHost - foreach my $pluginname (keys %{$PluginsLoaded{'ShowInfoHost'}}) { + foreach my $pluginname (sort keys %{$PluginsLoaded{'ShowInfoHost'}}) { my $function="ShowInfoHost_$pluginname('$host')"; eval("$function"); }