aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-07-15 18:42:00 -0400
committerJoey Hess <joey@kitenet.net>2011-07-15 18:42:00 -0400
commit87db6fbb79d3141248831db78b0683222942aaec (patch)
tree92b182dca65ece0781f026d888409c68a39567b6 /IkiWiki
parentaef85a247a4a9fbfe61225324f5efb462de52a6a (diff)
downloadikiwiki-87db6fbb79d3141248831db78b0683222942aaec.tar
ikiwiki-87db6fbb79d3141248831db78b0683222942aaec.tar.gz
only check for held attachments when operating on an attachment
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/remove.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm
index a58f87fb3..14ac01c9b 100644
--- a/IkiWiki/Plugin/remove.pm
+++ b/IkiWiki/Plugin/remove.pm
@@ -120,7 +120,7 @@ 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) {
require IkiWiki::Render;