summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/remove.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/remove.pm')
-rw-r--r--IkiWiki/Plugin/remove.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm
index 21028cde3..bb5f56540 100644
--- a/IkiWiki/Plugin/remove.pm
+++ b/IkiWiki/Plugin/remove.pm
@@ -97,11 +97,11 @@ sub formbuilder (@) { #{{{
removal_confirm($q, $session, 0, $form->field("page"));
}
elsif ($form->submitted eq "Remove Attachments") {
- my @pages=$q->param("attachment_select");
- if (! @pages) {
+ my @selected=$q->param("attachment_select");
+ if (! @selected) {
error(gettext("Please select the attachments to remove."));
}
- removal_confirm($q, $session, 1, @pages);
+ removal_confirm($q, $session, 1, @selected);
}
}
} #}}}
@@ -145,6 +145,8 @@ sub sessioncgi ($$) { #{{{
push @files, IkiWiki::possibly_foolish_untaint($file);
}
+ # TODO check attachment limits.
+
# Do removal, and update the wiki.
require IkiWiki::Render;
if ($config{rcs}) {