diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-21 22:30:43 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-21 22:30:43 -0400 |
commit | 96c529826d3104bee299b4d3ea09c95229b9b64d (patch) | |
tree | 48224963b55c6dca7130d4f0151d51306bd5c3d3 /IkiWiki/Plugin | |
parent | ed05e40566a8d2a39530507598d835764885cf73 (diff) |
skeleton rename plugin
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/remove.pm | 8 |
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}) { |