Changeset 11

Show
Ignore:
Timestamp:
06/10/06 18:44:15 (3 years ago)
Author:
jallen
Message:

r1031@jays-computer (orig r30780): bchoate | 2006-06-09 22:29:07 -0700
Fixed hash names for ping excerpt.

Location:
trunk/lib/MT
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/MT/Log.pm

    r5 r11  
    168168    my $msg; 
    169169    if (my $entry = $log->metadata_object) { 
    170         $msg = $entry->to_hash->{entry_text_html}; 
     170        $msg = $entry->to_hash->{'entry.text_html'}; 
    171171    } else { 
    172172        $msg = MT->translate('Entry # [_1] not found.', $log->metadata); 
     
    186186    my $msg; 
    187187    if ($cmt) { 
    188         $msg = $cmt->to_hash->{comment_text_html}; 
     188        $msg = $cmt->to_hash->{'comment.text_html'}; 
    189189    } else { 
    190190        $msg = MT->translate("Comment # [_1] not found.", $log->metadata); 
     
    204204    my $msg; 
    205205    if ($ping) { 
    206         $msg = $ping->to_hash->{ping_excerpt_html}; 
     206        $msg = $ping->to_hash->{'tbping.excerpt_html'}; 
    207207    } else { 
    208208        $msg = MT->translate("TrackBack # [_1] not found.", $log->metadata); 
  • trunk/lib/MT/TBPing.pm

    r5 r11  
    227227    my $hash = $ping->SUPER::to_hash(@_); 
    228228    require MT::Sanitize; 
    229     $hash->{tbping_excerpt} = MT::Sanitize->sanitize($ping->excerpt || ''); 
     229    $hash->{'tbping.excerpt_html'} = MT::Sanitize->sanitize($ping->excerpt || ''); 
    230230    $hash->{'tbping.created_on_iso'} = sub { MT::Util::ts2iso(undef, $ping->created_on) }; 
    231231    $hash->{'tbping.modified_on_iso'} = sub { MT::Util::ts2iso(undef, $ping->modified_on) };