Changeset 993

Show
Ignore:
Timestamp:
04/16/02 14:38:53 (11 years ago)
Author:
bradfitz
Message:

<lj user=avva>: fix broken subjects in talkread

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/talkread.bml

    r954 r993  
    541541            } else { 
    542542                # link to message 
     543 
     544                # convert the subject to UTF-8 if needed 
     545                if ($LJ::UNICODE && ! LJ::is_utf8($post->{'subject'})) { 
     546                    my $error; 
     547                    my $subj = LJ::text_convert($dbs, $post->{'subject'},  
     548                                                $u, \$error); 
     549                    if ($error) { 
     550                        LJ::text_out(\$post->{'subject'}); 
     551                    } else { 
     552                        $post->{'subject'} = $subj; 
     553                    } 
     554                } 
     555 
    543556                $$ret .= "<a name='t$dtid'></a><table><tr>"; 
    544557                $$ret .= "<td><img src='$LJ::IMGPREFIX/dot.gif' height='1' width='" . ($opts->{'depth'} * 25) . "'></td>";