summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/remove.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-21 16:21:46 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-21 16:21:46 -0400
commit90de84b44240de36f1bfbc97e24e2c4dbdf3c559 (patch)
tree71bf62ad09c256dea540260d0e9d6f656c187f25 /IkiWiki/Plugin/remove.pm
parentb182f5e573ce69635690a09149f9d09654b9e067 (diff)
typos
Diffstat (limited to 'IkiWiki/Plugin/remove.pm')
-rw-r--r--IkiWiki/Plugin/remove.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm
index e56a4a99c..2c00c1b15 100644
--- a/IkiWiki/Plugin/remove.pm
+++ b/IkiWiki/Plugin/remove.pm
@@ -116,7 +116,6 @@ sub sessioncgi ($$) { #{{{
}
elsif ($form->submitted eq 'Remove' && $form->validate) {
my @pages=$q->param("page");
- my @files = map { $pagesources{$_} } @pages;
# Validate removal by checking that the page exists,
# and that the user is allowed to edit(/remove) it.
@@ -128,7 +127,7 @@ sub sessioncgi ($$) { #{{{
}
IkiWiki::check_canedit($page, $q, $session);
- my $file=$pagesources{$_};
+ my $file=$pagesources{$page};
if (! -e "$config{srcdir}/$file") {
error(sprintf(gettext("%s is not in the srcdir, so it cannot be deleted"), $file));
}