]> sipb.mit.edu Git - ikiwiki.git/commitdiff
deal with title-less feeds
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 05:29:03 +0000 (05:29 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 30 Jul 2006 05:29:03 +0000 (05:29 +0000)
IkiWiki/Plugin/aggregate.pm

index 0ad24dcd055387a669f30a0585fd5acf98c5eeb2..99b26a546e91adb9ed35a7fea7ecb860884d8868 100644 (file)
@@ -204,7 +204,7 @@ FEED:       foreach my $feed (values %feeds) {
                        foreach my $entry ($f->entries) {
                                add_page(
                                        feed => $feed,
-                                       title => decode_entities($entry->title),
+                                       title => defined $entry->title ? decode_entities($entry->title) : "untitled",
                                        link => $entry->link,
                                        content => $entry->content->body,
                                        guid => defined $entry->id ? $entry->id : time."_".$feed->name,
@@ -220,7 +220,7 @@ FEED:       foreach my $feed (values %feeds) {
 
 sub add_page (@) { #{{{
        my %params=@_;
-
+       
        my $feed=$params{feed};
        my $guid={};
        my $mtime;