Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remember to run all the tests before committing!
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
remove.pm
diff --git
a/IkiWiki/Plugin/remove.pm
b/IkiWiki/Plugin/remove.pm
index b94447020de8f5f00cdb81776546a52a6ca00499..14ac01c9bcfc390f370f1a8fca74c3b51d7f0baa 100644
(file)
--- a/
IkiWiki/Plugin/remove.pm
+++ b/
IkiWiki/Plugin/remove.pm
@@
-120,10
+120,9
@@
sub removal_confirm ($$@) {
# Special case for unsaved attachments.
foreach my $page (@pages) {
# 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) {
my $f=IkiWiki::Plugin::attachment::is_held_attachment($page);
if (defined $f) {
- print STDERR "!! remove $f\n";
require IkiWiki::Render;
IkiWiki::prune($f);
}
require IkiWiki::Render;
IkiWiki::prune($f);
}