Load userpic width and height correctly.
Patch by kareila.
diffs (14 lines):
diff -r 86a6d882516c -r cbcf9c621bf9 cgi-bin/LJ/S2.pm
--- a/cgi-bin/LJ/S2.pm Thu May 07 07:07:10 2009 +0000
+++ b/cgi-bin/LJ/S2.pm Thu May 07 14:58:31 2009 +0000
@@ -2110,8 +2110,8 @@ sub Image_userpic
my $p = LJ::Userpic->new($u, $picid);
# load the dimensions, unless they have been passed in explicitly
- $width ||= $p->{width};
- $height ||= $p->{height};
+ $width ||= $p->width;
+ $height ||= $p->height;
# load the alttext. use description by default, keyword as fallback,
# and all keywords as final fallback (should be for default icon only).
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog