X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3256522bdaf2ca7c678041a19a4b97bd7dc57c90..37245a9988d22938a8f13fb89cecc5c23bbed419:/IkiWiki/Plugin/aggregate.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index f648a3f99..e000bc864 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -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); } }