]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki.pm
googlecalendar: Add runtime deprecation warning.
[ikiwiki.git] / IkiWiki.pm
index 6747a3ba45b7bf11bfec18319f85c7963a82c7c9..cc1e89acc04db45f18cb90a40e7a2a538b4350f4 100644 (file)
@@ -1624,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 ($) {