]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/aggregate.pm
add renamepage hooks
[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) {
+                       require IkiWiki::Render;
                        debug("removing output file $oldoutput");
-                       unlink($oldoutput) || error ("$!");
+                       IkiWiki::prune($oldoutput);
                }
        }