summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:28:35 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 01:28:35 -0400
commit9976c31aca790025af38a95a5ad08cd8ac3bc9a2 (patch)
tree8c7315b8be0f5c9f15639d4671aa48bad7d90b3f
parent1dddec0ba9f66f082f4b8349916cdb6bdb5636e3 (diff)
fix clearing index on page deletion
-rw-r--r--IkiWiki/Plugin/search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index aa0a8085e..3ea4c6b7f 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -119,7 +119,7 @@ sub index (@) { #{{{
sub delete (@) { #{{{
my $db=xapiandb();
foreach my $page (@_) {
- $db->delete_document_by_term(pageterm($page));
+ $db->delete_document_by_term(pageterm(pagename($page)));
}
} #}}}