* Don't sent pings if the wiki is being rebuilt.
[ikiwiki.git] / IkiWiki / Plugin / search.pm
index c94974ac4b608bfbf122f4455a0fe3fc0fcc71a6..94b37ca06ef034ea93445da6f27a21ef033ef127 100644 (file)
@@ -87,9 +87,7 @@ sub estcfg () { #{{{
        close TEMPLATE;
        open(TEMPLATE, ">$estdir/$cgi.conf") ||
                error("write $estdir/$cgi.conf: $!");
-       my $template=HTML::Template->new(
-               filename => "$config{templatedir}/estseek.conf"
-       );
+       my $template=template("estseek.conf");
        eval q{use Cwd 'abs_path'};
        $template->param(
                index => $estdir,