Changeset 2690

Show
Ignore:
Timestamp:
07/03/08 01:47:24 (20 months ago)
Author:
takayama
Message:

Fixed BugId:80476
* Applied an patch

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/lib/MT/Author.pm

    r2675 r2690  
    669669sub userpic { 
    670670    my $author = shift; 
     671    my (%param) = @_; 
     672 
     673    my $asset = $param{Asset}; 
     674    return $asset if $asset; 
    671675 
    672676    my $asset_id = $author->userpic_asset_id or return; 
     
    747751    return unless $thumb_url; 
    748752    sprintf q{<img src="%s?%d" width="%d" height="%d" alt="" />}, 
    749       MT::Util::encode_html($thumb_url), $author->userpic->id, $w, $h; 
     753      MT::Util::encode_html($thumb_url), $author->userpic(@_)->id, $w, $h; 
    750754} 
    751755