From 86660e9c82b67f9165cb5fabe28c341a338d8c4e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 6 Aug 2008 01:05:44 -0400 Subject: external: Fix support for hooks called in an array context. --- IkiWiki/Plugin/external.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index ff3b2d8ed..ba6c7d8b9 100644 --- a/IkiWiki/Plugin/external.pm +++ b/IkiWiki/Plugin/external.pm @@ -217,8 +217,7 @@ sub hook ($@) { #{{{ delete $params{call}; IkiWiki::hook(%params, call => sub { - my $ret=IkiWiki::Plugin::external::rpc_call($plugin, $callback, @_); - return $ret; + IkiWiki::Plugin::external::rpc_call($plugin, $callback, @_); }); } #}}} -- cgit v1.2.3