]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/testpagespec.pm
web commit from 83.222.23.243: poll vote (Accept only OpenID for logins)
[git.ikiwiki.info.git] / IkiWiki / Plugin / testpagespec.pm
index 4966f4e10b1a01d441cb45a4fb75205edaf4fe74..f9ec90d8791f8b5e6aa422ceb527fe272bfea9df 100644 (file)
@@ -12,6 +12,12 @@ sub import { #{{{
 sub preprocess (@) { #{{{
        my %params=@_;
        
+       foreach my $param (qw{match pagespec}) {
+               if (! exists $params{$param}) {
+                       return "[[testpagespec $param parameter is required]]";
+               }
+       }
+
        add_depends($params{page}, $params{pagespec});
        
        my $ret=pagespec_match($params{match}, $params{pagespec},