Просмотр исходного кода

correct bug in display for wordcount info
from Hanno

sbingner 25 лет назад
Родитель
Сommit
a21b7f4d46
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      pisg.pl

+ 2 - 2
pisg.pl

@@ -1161,8 +1161,8 @@ sub mostusedword
         for(my $i = 0; $i < 10; $i++) {
         for(my $i = 0; $i < 10; $i++) {
             last unless $i < $#popular;
             last unless $i < $#popular;
             my $a = $i + 1;
             my $a = $i + 1;
-            my $popular = $popular[$i];
-            my $wordcount = htmlentities($wordcount{$popular[$i]});
+            my $popular = htmlentities($popular[$i]);
+            my $wordcount = $wordcount{$popular[$i]};
             my $lastused = htmlentities($lastused{$popular[$i]});
             my $lastused = htmlentities($lastused{$popular[$i]});
             html("<tr><td bgcolor=\"$conf->{rankc}\"><b>$a</b>");
             html("<tr><td bgcolor=\"$conf->{rankc}\"><b>$a</b>");
             html("<td bgcolor=\"$conf->{hicell}\">$popular</td>");
             html("<td bgcolor=\"$conf->{hicell}\">$popular</td>");