Use selected userpic keyword for alt= text if no description is
available.
Patch by afuna.
diffs (30 lines):
diff -r 93519a60dbeb -r 0f7817bdbd14 htdocs/talkread.bml
--- a/htdocs/talkread.bml Fri May 08 14:51:52 2009 +0000
+++ b/htdocs/talkread.bml Fri May 08 16:26:44 2009 +0000
@@ -256,7 +256,7 @@ body<=
my $apost = "</td>";
# for each image, get the html imgtag
- $ret .= "$apre" . $userpic->imgtag . $apost;
+ $ret .= $apre . $userpic->imgtag( keyword => $props->{picture_keyword}
) . $apost;
}
$ret .= "<td class='attrib' valign='bottom'>";
@@ -557,7 +557,7 @@ body<=
my $postpic = LJ::Userpic->new( $pu, $post->{picid} );
# get the picture keyword from the comment properties
- my %kwopts = (
+ my %kwopts = (
keyword => $post->{props}->{'picture_keyword'}
);
@@ -739,7 +739,7 @@ body<=
}
};
- #
+ #
# Display comment threads and commenting UI
#
unless ($nocomments)
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog