Ver Fonte

* PicWidth and PicHeight settings now also works for DefaultPic option.

Morten Brix Pedersen há 23 anos atrás
pai
commit
4f8c9ddb1d
2 ficheiros alterados com 3 adições e 2 exclusões
  1. 1 0
      docs/Changelog
  2. 2 2
      modules/Pisg/HTMLGenerator.pm

+ 1 - 0
docs/Changelog

@@ -11,6 +11,7 @@ pisg (x.xx)
    * The irssi logformat now also works when the timestamping includes
      seconds.
    * Added orange_grey colorscheme (thanks, maggic).
+   * PicWidth and PicHeight settings now also works for DefaultPic option.
 
 pisg (0.47) - Wed Feb, 26th 2003
    * Fix bug where multiple URLs in same line would have save name as first URL

+ 2 - 2
modules/Pisg/HTMLGenerator.pm

@@ -517,9 +517,9 @@ sub _activenicks
             _html("</td>");
         } elsif ($self->{cfg}->{defaultpic} ne '' && $self->{cfg}->{userpics} !~ /n/i)  {
              if ($self->{cfg}->{defaultpic} =~ /^http:\/\//i) {
-                _html("<td style=\"background-color: $color\" align=\"center\" valign=\"middle\"><img src=\"$self->{cfg}->{defaultpic}\" alt=\"\" /></td>");
+                _html("<td style=\"background-color: $color\" align=\"center\" valign=\"middle\"><img src=\"$self->{cfg}->{defaultpic}\" $width $height alt=\"\" /></td>");
              } else {
-                _html("<td style=\"background-color: $color\" align=\"center\" valign=\"middle\"><img src=\"$self->{cfg}->{imagepath}$self->{cfg}->{defaultpic}\" alt=\"\" /></td>");
+                _html("<td style=\"background-color: $color\" align=\"center\" valign=\"middle\"><img src=\"$self->{cfg}->{imagepath}$self->{cfg}->{defaultpic}\" $width $height alt=\"\" /></td>");
              }
         }