]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/aggregate.pm
don't show an error if the image is missing, instead, a broken link
[git.ikiwiki.info.git] / IkiWiki / Plugin / aggregate.pm
index f648a3f99f053dd99aa0fb255f5994c20358a327..e000bc8648a39f33cea5aef932286255f343f4a2 100644 (file)
@@ -157,8 +157,9 @@ sub migrate_to_internal { #{{{
                        debug("$oldname not found");
                }
                if (-e $oldoutput) {
                        debug("$oldname not found");
                }
                if (-e $oldoutput) {
+                       require IkiWiki::Render;
                        debug("removing output file $oldoutput");
                        debug("removing output file $oldoutput");
-                       unlink($oldoutput) || error ("$!");
+                       IkiWiki::prune($oldoutput);
                }
        }
        
                }
        }