]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: Full list of extrasections was not ordered correctly
authoreldy <>
Sat, 15 Nov 2008 16:20:53 +0000 (16:20 +0000)
committereldy <>
Sat, 15 Nov 2008 16:20:53 +0000 (16:20 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index 96457ebffc749224da59facfeea5e2ba66cef58b..fd21edfff433698bd38922add0f6b86079d64f88 100644 (file)
@@ -26,6 +26,7 @@ Fixes:
 - Fix: [ 1921942 ] html footer is missing from the allextraN report.
 - Fix: [ 1943466 ] error geoip_city_maxmind Can't locate object method "record_
 - Fix: [ 1808277 ] Incorrect function call in geoip_isp_maxmind.pm
+- Fix: Full list of extrasections was not ordered correctly
 - A lot of other fixes.
 - Added missing icons
 
index 1f61c3d195c1c089ccce60422753b41520bd9d35..860b150ec1d0093bfeb2a717b181f380fcde1304 100644 (file)
@@ -14,8 +14,7 @@ require 5.005;
 #use diagnostics;      # Must be used in test mode only. This reduce a lot of process speed
 use strict;
 no strict "refs";
-use Time::Local
-  ; # use Time::Local 'timelocal_nocheck' is faster but not supported by all Time::Local modules
+use Time::Local;       # use Time::Local 'timelocal_nocheck' is faster but not supported by all Time::Local modules
 use Socket;
 
 #------------------------------------------------------------------------------
@@ -8869,8 +8868,8 @@ sub ShowMenuCateg {
        # Call to plugins' function AddHTMLMenuLink
        foreach my $pluginname ( keys %{ $PluginsLoaded{'AddHTMLMenuLink'} } ) {
 
-#              my $function="AddHTMLMenuLink_$pluginname('$categ',\$menu,\$menulink,\$menutext)";
-#              eval("$function");
+               # my $function="AddHTMLMenuLink_$pluginname('$categ',\$menu,\$menulink,\$menutext)";
+               # eval("$function");
                my $function = "AddHTMLMenuLink_$pluginname";
                &$function( $categ, $menu, $menulink, $menutext );
        }
@@ -8879,7 +8878,7 @@ sub ShowMenuCateg {
        }
        if ( !$linetitle ) { return; }
 
-# At least one entry in menu for this category, we can show categpry and entries
+       # At least one entry in menu for this category, we can show category and entries
        my $WIDTHMENU1 = ( $FrameName eq 'mainleft' ? $FRAMEWIDTH : 150 );
        print "<tr><td class=\"awsm\" width=\"$WIDTHMENU1\""
          . ( $frame ? "" : " valign=\"top\"" ) . ">"
@@ -13253,7 +13252,7 @@ if ( scalar keys %HTMLOutput ) {
                &$function();
        }
 
-       # MENU
+       # MENU (ON LEFT IF FRAME OR TOP)
        #---------------------------------------------------------------------
        if ( $ShowMenu || $FrameName eq 'mainleft' ) {
                my $frame = ( $FrameName eq 'mainleft' );
@@ -13629,11 +13628,12 @@ if ( scalar keys %HTMLOutput ) {
                                %menu     = ();
                                %menulink = ();
                                %menutext = ();
+                               my $i=1;
                                foreach ( 1 .. @ExtraName - 1 ) {
-                                       $menu{"extra$_"}        = 1;
+                                       $menu{"extra$_"}        = $i++;
                                        $menulink{"extra$_"}    = 1;
                                        $menutext{"extra$_"}    = $ExtraName[$_];
-                                       $menu{"allextra$_"}     = 2;
+                                       $menu{"allextra$_"}     = $i++;
                                        $menulink{"allextra$_"} = 2;
                                        $menutext{"allextra$_"} = $Message[80];
                                }