diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-07 01:54:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-07 01:54:28 -0400 |
commit | dbbc1e4040b737e4f42a621a7b3ee80521d02676 (patch) | |
tree | 8ff29a98eee5ec98c8c392e232428128f4df334a /IkiWiki/Plugin | |
parent | 7b8f4d2d062dbc01065b58fde89b9a04aa321fe2 (diff) |
minor improvements
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/search.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index 7b41bbde9..284f477fa 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -194,9 +194,10 @@ sub xapiandb () { #{{{ return $db; } #}}} -my $setup; +{ +my $setup=0; sub setupfiles () { #{{{ - if (! defined $setup and ! -e $config{wikistatedir}."/xapian" || $config{rebuild}) { + if (! $setup and (! -e $config{wikistatedir}."/xapian" || $config{rebuild})) { writefile("omega.conf", $config{wikistatedir}."/xapian", "database_dir .\n". "template_dir ./templates\n"); @@ -206,5 +207,6 @@ sub setupfiles () { #{{{ $setup=1; } } #}}} +} 1 |