]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/search.pm
po plugin: reworked available options
[git.ikiwiki.info.git] / IkiWiki / Plugin / search.pm
index cb12d9500d95a31545426fd3c984e3297286d457..e40f4888c44721005ab96d9a1bb4590b13fcea89 100644 (file)
@@ -17,6 +17,10 @@ sub import { #{{{
 
 sub getsetup () { #{{{
        return
 
 sub getsetup () { #{{{
        return
+               plugin => {
+                       safe => 1,
+                       rebuild => 1,
+               },
                omega_cgi => {
                        type => "string",
                        example => "/usr/lib/cgi-bin/omega/omega",
                omega_cgi => {
                        type => "string",
                        example => "/usr/lib/cgi-bin/omega/omega",
@@ -69,7 +73,7 @@ sub index (@) { #{{{
        
        my $db=xapiandb();
        my $doc=Search::Xapian::Document->new();
        
        my $db=xapiandb();
        my $doc=Search::Xapian::Document->new();
-       my $caption=IkiWiki::pagetitle($params{page});
+       my $caption=pagetitle($params{page});
        my $title;
        if (exists $pagestate{$params{page}}{meta} &&
                exists $pagestate{$params{page}}{meta}{title}) {
        my $title;
        if (exists $pagestate{$params{page}}{meta} &&
                exists $pagestate{$params{page}}{meta}{title}) {