Don't allow uploading an attachment with the same name as an existing page, to avoid...
[git.ikiwiki.info.git] / IkiWiki / Plugin / aggregate.pm
index 301fe40f6dcb96ba15cc396ee823ea5509ac7378..e000bc8648a39f33cea5aef932286255f343f4a2 100644 (file)
@@ -157,9 +157,9 @@ sub migrate_to_internal { #{{{
                        debug("$oldname not found");
                }
                if (-e $oldoutput) {
-                       use IkiWiki::Render;
+                       require IkiWiki::Render;
                        debug("removing output file $oldoutput");
-                       IkiWIki::prune($oldoutput) || error ("$!");
+                       IkiWiki::prune($oldoutput);
                }
        }