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

Fix [:total] not being used in template

Morten Brix Pedersen 25 лет назад
Родитель
Сommit
98b5701255
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      modules/Pisg/HTMLGenerator.pm

+ 3 - 4
modules/Pisg/HTMLGenerator.pm

@@ -1177,10 +1177,9 @@ sub _lasttopics
             my $nick = $stats->{topics}[$i]{nick};
             my $hour = $stats->{topics}[$i]{hour};
             my $min  = $stats->{topics}[$i]{min};
-            %hash = (
-                nick => $nick,
-                time => "$hour:$min"
-            );
+
+            $hash{nick} = $nick;
+            $hash{time} = "$hour:$min";
             _html("<tr><td bgcolor=\"$self->{cfg}->{hicell}\"><i>$topic</i></td>");
             _html("<td bgcolor=\"$self->{cfg}->{hicell}\">" . $self->_template_text('bylinetopic', %hash) ."</b></td></tr>");
         }