]> sipb.mit.edu Git - ikiwiki.git/commitdiff
don't use meta title
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 17:12:10 +0000 (13:12 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 4 Jun 2008 17:12:10 +0000 (13:12 -0400)
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.

IkiWiki/Plugin/search.pm

index 14bdb8dbc2651c2ae2ec7174e92cad738878a5c2..29d31dfdc15d0e00ab326a5f9cce0aeeb54eb35c 100644 (file)
@@ -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) {