This avoids another one of those $_ scoping issues where a deep call to a
function that changes $_ clobbers the array that is being looped over.
my $attachment=shift;
my @pages=@_;
- check_canremove($_, $q, $session) foreach @pages;
+ foreach my $page (@pages) {
+ check_canremove($page, $q, $session);
+ }
# Save current form state to allow returning to it later
# without losing any edits.
+ikiwiki (2.67) UNRELEASED; urgency=low
+
+ * remove: Avoid $_ breakage. (Stupid, stupid perl.)
+
+ -- Joey Hess <joeyh@debian.org> Mon, 06 Oct 2008 16:07:50 -0400
+
ikiwiki (2.66) unstable; urgency=low
* recentchanges: Fix redirects to non-page files.