summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-23 17:19:27 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-23 17:19:27 -0500
commitf65311bddb82133e51ab504220dac2b839a2b535 (patch)
treee6cff457cdde43671d94d59d724dd3baa8370346 /IkiWiki.pm
parentc8cde4858eb8b1d0356b32f3b3ec1f6e8d38aec3 (diff)
hack to avoid globlist deprecaton message false positive
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index a81e34c3d..cc1e89acc 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1597,8 +1597,6 @@ sub rcs_receive () {
}
sub globlist_to_pagespec ($) {
- print STDERR "warning: deprecated GlobList style PageSpec \"$_[0]\" will stop working in ikiwiki version 3.0\n";
-
my @globlist=split(' ', shift);
my (@spec, @skip);
@@ -1626,7 +1624,10 @@ sub globlist_to_pagespec ($) {
sub is_globlist ($) {
my $s=shift;
- return ( $s =~ /[^\s]+\s+([^\s]+)/ && $1 ne "and" && $1 ne "or" );
+ my $ret= ( $s =~ /[^\s]+\s+([^\s]+)/ && $1 ne "and" && $1 ne "or" );
+ print STDERR "warning: deprecated GlobList style PageSpec \"$s\" will stop working in ikiwiki version 3.0\n"
+ if $ret && $s !~ /TMPL_VAR/; # hack alert
+ return $ret;
}
sub safequote ($) {