From d3188a04fff1d0ed7329b3aae8343beaf1735390 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 May 2009 12:57:37 -0400 Subject: external: Fix pagespec_match and pagespec_match_list. Closes: #527281 --- IkiWiki/Plugin/external.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index f0acc7e4e..57a72eb68 100644 --- a/IkiWiki/Plugin/external.pm +++ b/IkiWiki/Plugin/external.pm @@ -232,15 +232,21 @@ sub hook ($@) { sub pagespec_match ($@) { # convert return object into a XML RPC boolean my $plugin=shift; + my $page=shift; + my $spec=shift; - return RPC::XML::boolean->new(0 + IkiWiki::pagespec_match(@_)); + return RPC::XML::boolean->new(0 + IkiWiki::pagespec_match( + $page, $spec, @_)); } sub pagespec_match_list ($@) { # convert return object into a XML RPC boolean my $plugin=shift; + my $pages=shift; + my $spec=shift; - return RPC::XML::boolean->new(0 + IkiWiki::pagespec_match_list(@_)); + return RPC::XML::boolean->new(0 + IkiWiki::pagespec_match_list( + $pages, $spec, @_)); } 1 -- cgit v1.2.3