Anonymous - 2011-06-08

when using awstats_buildstaticpages.pl the links on the mainpage do not match
the written filenames, thus leading to a 404 when clicking a link on top which
points to any file except the mainpage itself.

this is a possible fix:

--- awstats/tools/awstats_buildstaticpages.pl.orig 2011-06-08 14:20:19.000000000 +0200
+++ awstats/tools/awstats_buildstaticpages.pl   2011-06-08 14:20:48.000000000 +0200
@@ -448,7 +448,7 @@ for my $output (@OutputList) {
   my $command="$smallcommand -output=$output";
   print "Build $output page: $command\n";
   $retour=`$command  2>&1`;
-  $OutputFile=($OutputDir?$OutputDir:"")."awstats.$OutputSuffix.$output.$StaticExt";
+  $OutputFile=($OutputDir?$OutputDir:"")."$OutputSuffix.$output.$StaticExt";
   open("OUTPUT",">$OutputFile") || error("Couldn't open log file \"$OutputFile\" for writing : $!");
   print OUTPUT $retour;
   close("OUTPUT");