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

Remember to call get_subst with $self->, or else we will get weird output on
stats page..

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

+ 2 - 2
modules/Pisg/HTMLGenerator.pm

@@ -338,8 +338,8 @@ sub activetimes
 
 sub activenicks
 {
-    my $self = shift;
     # The most active nicks (those who wrote most lines)
+    my $self = shift;
     my ($stats) = @_;
 
     $self->headline($self->template_text('activenickstopic'));
@@ -1214,7 +1214,7 @@ sub template_text
     }
 
     if ($text =~ /\[:.*?:.*?:\]/o) {
-        $text =~ s/\[:(.*?):(.*?):\]/get_subst($1,$2,\%hash)/geo;
+        $text =~ s/\[:(.*?):(.*?):\]/$self->get_subst($1,$2,\%hash)/geo;
     }
     return $text;