- return 1 if match_glob($params{sourcepage}, $glob, @_);
- return IkiWiki::FailReason->new("sourcepage does not match $glob");
+ if (match_glob($params{sourcepage}, $glob, @_)) {
+ return IkiWiki::SuccessReason->new("sourcepage matches $glob");
+ }
+ else {
+ return IkiWiki::FailReason->new("sourcepage does not match $glob");
+ }