pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] changelog2009-05-08 04:27 pm

[dw-free] http://bugs.dwscoalition.org/show_bug?id=1075

[commit: http://hg.dwscoalition.org/dw-free/rev/0f7817bdbd14]

http://bugs.dwscoalition.org/show_bug?id=1075

Use selected userpic keyword for alt= text if no description is available.

Patch by [personal profile] afuna.

Files modified:
  • htdocs/talkread.bml
--------------------------------------------------------------------------------
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)
--------------------------------------------------------------------------------