]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/remove.pm
Merge branch 'master' of git://git.ikiwiki.info
[git.ikiwiki.info.git] / IkiWiki / Plugin / remove.pm
index b94447020de8f5f00cdb81776546a52a6ca00499..14ac01c9bcfc390f370f1a8fca74c3b51d7f0baa 100644 (file)
@@ -120,10 +120,9 @@ sub removal_confirm ($$@) {
                
        # Special case for unsaved attachments.
        foreach my $page (@pages) {
-               if (IkiWiki::Plugin::attachment->can("is_held_attachment")) {
+               if ($attachment && IkiWiki::Plugin::attachment->can("is_held_attachment")) {
                        my $f=IkiWiki::Plugin::attachment::is_held_attachment($page);
                        if (defined $f) {
-                               print STDERR "!! remove $f\n";
                                require IkiWiki::Render;
                                IkiWiki::prune($f);
                        }