Changeset 2108

Show
Ignore:
Timestamp:
04/25/08 23:33:52 (19 months ago)
Author:
bchoate
Message:

Output logo for comment author identity even if commenter has no url in their profile. BugId:79512

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-36/lib/MT/Template/ContextHandlers.pm

    r2103 r2108  
    55245524        } 
    55255525    } 
    5526     return q() unless $cmntr->url; 
    55275526    my $link = $cmntr->url; 
    55285527    my $static_path = _hdlr_static_path($ctx); 
     
    55305529    unless ($logo) { 
    55315530        my $root_url = $static_path . "images"; 
    5532         $root_url =~ s|/$||; 
    55335531        $logo = "$root_url/nav-commenters.gif"; 
    55345532    } 
    5535     qq{<a class="commenter-profile" href=\"$link\"><img alt=\"Author Profile Page\" src=\"$logo\" width=\"16\" height=\"16\" /></a>}; 
     5533    my $result = qq{<img alt=\"Author Profile Page\" src=\"$logo\" width=\"16\" height=\"16\" />}; 
     5534    if ($link) { 
     5535        $result = qq{<a class="commenter-profile" href=\"$link\">$result</a>}; 
     5536    } 
     5537    return $result; 
    55365538} 
    55375539