]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
no need to return content from postscan hook
authorJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 04:07:41 +0000 (00:07 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 04:07:41 +0000 (00:07 -0400)
IkiWiki/Plugin/search.pm

index c0e8703d8ba8fcd9ef5cd21fa5ec3db5219b2e78..a1e7026caf0e11d783c65d90ea6e233123122bbb 100644 (file)
@@ -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();