don't use meta title
[ikiwiki.git] / 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) {