]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Plugins that add info in reports are called in sorted order.
authoreldy <>
Wed, 27 Oct 2004 20:54:08 +0000 (20:54 +0000)
committereldy <>
Wed, 27 Oct 2004 20:54:08 +0000 (20:54 +0000)
wwwroot/cgi-bin/awstats.pl

index 517d532238368b37aac5e323dccbb995f30a0f88..dbe6b2e619db20d20d7dde4a1be0529df43f76ed 100644 (file)
@@ -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");
        }