From 42826842cde940e232e06a1c25bf58ad3355ee3f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 26 Aug 2008 12:48:22 -0400 Subject: [PATCH] external: Fix support for hooks called in an array context. (cherry picked from commit 86660e9c82b67f9165cb5fabe28c341a338d8c4e) --- IkiWiki/Plugin/external.pm | 3 +-- debian/changelog | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index 204442c1e..1abf0d4a5 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, @_); }); } #}}} diff --git a/debian/changelog b/debian/changelog index b1d55cfdb..4a998d8b8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -20,6 +20,7 @@ ikiwiki (2.53.1) UNRELEASED; urgency=low * toggle: Fix incompatability between javascript and webkit. * toggle: Fix for when html got tidied. Closes: #492529 (Enrico Zini) * inline: Ignore parent dirs when sorting pages by title. + * external: Fix support for hooks called in an array context. -- Josh Triplett Wed, 09 Jul 2008 21:30:33 -0700 -- 2.39.2