Changeset 21719
- Timestamp:
- 10/21/08 00:54:55 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Data-Feed/trunk/lib/Data/Feed/RSS/Entry.pm
r21713 r21719 7 7 use DateTime::Format::Mail; 8 8 use DateTime::Format::W3CDTF; 9 use Scalar::Util (); 9 10 10 11 with 'Data::Feed::Web::Entry'; … … 44 45 45 46 if (@_) { 46 $item->{description} = blessed $_[0] eq 'Data::Feed::Web::Content' ? 47 $item->{description} = 48 (Scalar::Util::blessed($_[0]) || '') eq 'Data::Feed::Web::Content' ? 47 49 $_[0]->body : $_[0]; 48 50 ## Because of the logic below, we need to add some dummy content, … … 78 80 79 81 if (@_) { 80 my $c = blessed $_[0]eq 'Data::Feed::Web::Content' ? $_[0]->body : $_[0];82 my $c = (Scalar::Util::blessed($_[0]) || '') eq 'Data::Feed::Web::Content' ? $_[0]->body : $_[0]; 81 83 $item->{content}{encoded} = $c; 82 84 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)