]> sipb.mit.edu Git - ikiwiki.git/commitdiff
typos
authorJoey Hess <joey@kodama.kitenet.net>
Mon, 21 Jul 2008 20:21:46 +0000 (16:21 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Mon, 21 Jul 2008 20:21:46 +0000 (16:21 -0400)
IkiWiki/Plugin/remove.pm

index e56a4a99c36d43043ca9608e5a4ac3e5962b0522..2c00c1b158054924ac6160b25f739f555c6f94fe 100644 (file)
@@ -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));
                                }