revert accidentially committed change
authorJoey Hess <joey@kitenet.net>
Mon, 13 Sep 2010 16:49:31 +0000 (12:49 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 13 Sep 2010 16:49:31 +0000 (12:49 -0400)
IkiWiki/Plugin/inline.pm

index 20c5f3bddc08473bd06f27dfa5f5c3e35e1b22c0..715a3d6523cfcee4e57c125425d19cfdab110298 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,7 +591,6 @@ sub genfeed ($$$$$@) {
                        }
                }
                else {
-                       next unless defined $type;
                        $itemtemplate->param(content => $pcontent);
                }