From: Joey Hess Date: Mon, 7 Jul 2008 05:54:28 +0000 (-0400) Subject: minor improvements X-Git-Tag: 2.53~80 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dbbc1e4040b737e4f42a621a7b3ee80521d02676;p=ikiwiki.git minor improvements --- 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