From: Joey Hess Date: Tue, 20 Apr 2010 04:07:41 +0000 (-0400) Subject: no need to return content from postscan hook X-Git-Tag: 3.20100427~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1239fa55d5d5b9ca81dbde0874f4ff8d1980429d;p=ikiwiki.git no need to return content from postscan hook --- diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index c0e8703d8..a1e7026ca 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -70,7 +70,7 @@ sub index (@) { # A unique pageterm is used to identify the document for a page. my $pageterm=pageterm($params{page}); - return $params{content} unless defined $pageterm; + return unless defined $pageterm; my $db=xapiandb(); my $doc=Search::Xapian::Document->new();