]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/inline.pm
Pass array of names of files that have been deleted to needsbuild hook as second...
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index 715a3d6523cfcee4e57c125425d19cfdab110298..20c5f3bddc08473bd06f27dfa5f5c3e35e1b22c0 100644 (file)
@@ -570,9 +570,9 @@ sub genfeed ($$$$$@) {
                        }
                }
 
+               my $file=$pagesources{$p};
+               my $type=pagetype($file);
                if ($itemtemplate->query(name => "enclosure")) {
-                       my $file=$pagesources{$p};
-                       my $type=pagetype($file);
                        if (defined $type) {
                                $itemtemplate->param(content => $pcontent);
                        }
@@ -591,6 +591,7 @@ sub genfeed ($$$$$@) {
                        }
                }
                else {
+                       next unless defined $type;
                        $itemtemplate->param(content => $pcontent);
                }