aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-06 20:46:58 -0400
committerJoey Hess <joey@kitenet.net>2010-05-06 20:46:58 -0400
commit2e86b8df985067e101269bb4f8a41c5237af9f91 (patch)
tree84f4dedfd0fa09cbbb25b50cb6ba52e105ff3fcb
parent71b8d2ad4122b7cfe9eda52959e0b2c1f172439c (diff)
downloadikiwiki-2e86b8df985067e101269bb4f8a41c5237af9f91.tar
ikiwiki-2e86b8df985067e101269bb4f8a41c5237af9f91.tar.gz
fix param passing to match_glob
-rw-r--r--IkiWiki.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 43995fc96..11cfcdfd2 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2342,12 +2342,12 @@ sub match_glob ($$;@) {
}
sub match_internal ($$;@) {
- return match_glob($_[0], $_[1], @_, internal => 1)
+ return match_glob(shift, shift, @_, internal => 1)
}
sub match_page ($$;@) {
my $page=shift;
- my $match=match_glob($page, $_[1], @_);
+ my $match=match_glob($page, shift, @_);
if ($match && ! defined IkiWiki::pagetype($IkiWiki::pagesources{$page})) {
return IkiWiki::FailReason->new("$page is not a page");
}