]> sipb.mit.edu Git - ikiwiki.git/commitdiff
hack to avoid globlist deprecaton message false positive
authorJoey Hess <joey@gnu.kitenet.net>
Tue, 23 Dec 2008 22:19:27 +0000 (17:19 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Tue, 23 Dec 2008 22:19:27 +0000 (17:19 -0500)
IkiWiki.pm

index a81e34c3dfcb82b47ab743a53bf2eadb4b4238ad..cc1e89acc04db45f18cb90a40e7a2a538b4350f4 100644 (file)
@@ -1597,8 +1597,6 @@ sub rcs_receive () {
 }
 
 sub globlist_to_pagespec ($) {
 }
 
 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);
        my @globlist=split(' ', shift);
 
        my (@spec, @skip);
@@ -1626,7 +1624,10 @@ sub globlist_to_pagespec ($) {
 
 sub is_globlist ($) {
        my $s=shift;
 
 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 ($) {
 }
 
 sub safequote ($) {