From ba0d82e7ea655b47683097f142e73fd29b684f47 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 23 Feb 2007 19:36:31 +0000 Subject: [PATCH] * Patch from HenrikBrixAndersen to fix a broken use of foreach in the search plugin. --- IkiWiki/Plugin/search.pm | 5 +++-- debian/changelog | 4 +++- doc/bugs/Hyperestraier_search_plug-in_defective.mdwn | 5 ++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 70d05d5a0..61e9214e6 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -64,8 +64,9 @@ sub change (@) { #{{{ debug(gettext("updating hyperestraier search index")); estcmd("gather -cm -bc -cl -sd", map { - Encode::encode_utf8($config{destdir}."/".$_) - foreach @{$renderedfiles{pagename($_)}}; + map { + Encode::encode_utf8($config{destdir}."/".$_) + } @{$renderedfiles{pagename($_)}}; } @_ ); estcfg(); diff --git a/debian/changelog b/debian/changelog index ead6f6b4d..0005334d9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -34,8 +34,10 @@ ikiwiki (1.44) UNRELEASED; urgency=low (except for commit mails). The CGI then takes care of the updates the commit hook would have done. * French translation update. Closes: #411899 + * Patch from HenrikBrixAndersen to fix a broken use of foreach in the + search plugin. - -- Joey Hess Wed, 21 Feb 2007 13:34:09 -0500 + -- Joey Hess Fri, 23 Feb 2007 14:34:18 -0500 ikiwiki (1.43) unstable; urgency=low diff --git a/doc/bugs/Hyperestraier_search_plug-in_defective.mdwn b/doc/bugs/Hyperestraier_search_plug-in_defective.mdwn index 7f22e0eaf..fd39ccd3b 100644 --- a/doc/bugs/Hyperestraier_search_plug-in_defective.mdwn +++ b/doc/bugs/Hyperestraier_search_plug-in_defective.mdwn @@ -46,4 +46,7 @@ The patch below fixes this issue: + } @{$renderedfiles{pagename($_)}}; } @_ ); - estcfg(); \ No newline at end of file + estcfg(); + +[[bugs/done]] ; thanks for the patch. Suprised it worked at all since the +bad code was added (did it?) --[[Joey]] -- 2.26.2