aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/map.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-08 23:51:06 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-08 23:51:06 -0400
commit5e7b2dea84a35163b599b88efc02cd7ef3e0ad46 (patch)
treeb9defe4426804bdfd04a53fe00f3e5abf54c7a81 /IkiWiki/Plugin/map.pm
parent955bcea2a7bacb98cb62a38faa78b05e0f430aac (diff)
downloadikiwiki-5e7b2dea84a35163b599b88efc02cd7ef3e0ad46.tar
ikiwiki-5e7b2dea84a35163b599b88efc02cd7ef3e0ad46.tar.gz
rename use_pagespec to pagespec_match_list
To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
Diffstat (limited to 'IkiWiki/Plugin/map.pm')
-rw-r--r--IkiWiki/Plugin/map.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/map.pm b/IkiWiki/Plugin/map.pm
index 634b0e4d6..788b96827 100644
--- a/IkiWiki/Plugin/map.pm
+++ b/IkiWiki/Plugin/map.pm
@@ -36,7 +36,8 @@ sub preprocess (@) {
# Get all the items to map.
my %mapitems;
- foreach my $page (use_pagespec($params{page}, $params{pages}, deptype => $deptype)) {
+ foreach my $page (pagespec_match_list($params{page}, $params{pages},
+ deptype => $deptype)) {
if (exists $params{show} &&
exists $pagestate{$page} &&
exists $pagestate{$page}{meta}{$params{show}}) {