aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/remove.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-21 22:30:43 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-21 22:30:43 -0400
commit96c529826d3104bee299b4d3ea09c95229b9b64d (patch)
tree48224963b55c6dca7130d4f0151d51306bd5c3d3 /IkiWiki/Plugin/remove.pm
parented05e40566a8d2a39530507598d835764885cf73 (diff)
downloadikiwiki-96c529826d3104bee299b4d3ea09c95229b9b64d.tar
ikiwiki-96c529826d3104bee299b4d3ea09c95229b9b64d.tar.gz
skeleton rename plugin
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}) {