Przeglądaj źródła

No "Userpic" headline was shown when there were only DefaultPics

Christoph Berg 21 lat temu
rodzic
commit
bb24aa821e
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 0
      docs/Changelog
  2. 1 1
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
docs/Changelog

@@ -12,6 +12,7 @@ pisg (0.64) - ??
      (AltColorScheme option).
      (AltColorScheme option).
    * Made Logfile accept wildcards, sanitized NFiles behaviour on multiple
    * Made Logfile accept wildcards, sanitized NFiles behaviour on multiple
      LogDirs.
      LogDirs.
+   * No "Userpic" headline was shown when there were only DefaultPics.
 
 
 pisg (0.63) - Wed Jan, 12th 2005
 pisg (0.63) - Wed Jan, 12th 2005
    Morten:
    Morten:

+ 1 - 1
modules/Pisg/HTMLGenerator.pm

@@ -532,7 +532,7 @@ sub _activenicks
     for (my $c = 0; $c < $self->{cfg}->{activenicks}; $c++) {
     for (my $c = 0; $c < $self->{cfg}->{activenicks}; $c++) {
         last unless $self->{cfg}->{userpics};
         last unless $self->{cfg}->{userpics};
         my $nick = $active[$c];
         my $nick = $active[$c];
-        if ($self->{users}->{userpics}{$nick}) {
+        if ($self->{users}->{userpics}{$nick} or $self->{cfg}->{defaultpic}) {
             _html("<td class=\"tdtop\"" .
             _html("<td class=\"tdtop\"" .
                 ($self->{cfg}->{userpics} > 1 ? " colspan=\"$self->{cfg}->{userpics}\"" : "") .
                 ($self->{cfg}->{userpics} > 1 ? " colspan=\"$self->{cfg}->{userpics}\"" : "") .
                 "><b>" . $self->_template_text('userpic') ."</b></td>");
                 "><b>" . $self->_template_text('userpic') ."</b></td>");