aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/search.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-06-04 13:12:10 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-06-04 13:12:10 -0400
commit295e958da57129372b801275c78be0a4aa2b7ca9 (patch)
tree0607a27a5996eefb17dccaa4339036ece27bf712 /IkiWiki/Plugin/search.pm
parenta0970423a72a6e687eeb79b660d7609f2539d7b8 (diff)
downloadikiwiki-295e958da57129372b801275c78be0a4aa2b7ca9.tar
ikiwiki-295e958da57129372b801275c78be0a4aa2b7ca9.tar.gz
don't use meta title
Using the title obscured path info, and made search results look inconsistent. Since nothing else uses the title like that, it didn't make sense for search to.
Diffstat (limited to 'IkiWiki/Plugin/search.pm')
-rw-r--r--IkiWiki/Plugin/search.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index 14bdb8dbc..29d31dfdc 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -62,14 +62,7 @@ sub index (@) { #{{{
my $db=xapiandb();
my $doc=Search::Xapian::Document->new();
- my $title;
- if (exists $pagestate{$params{page}}{meta} &&
- exists $pagestate{$params{page}}{meta}{title}) {
- $title=$pagestate{$params{page}}{meta}{title};
- }
- else {
- $title=IkiWiki::pagetitle($params{page});
- }
+ my $title=IkiWiki::pagetitle($params{page});
# Remove html from text to be indexed.
if (! defined $scrubber) {