X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/dae0f48e91304afcb6ebe0936360e51b22a56548..efecdae0914773b224b76a4247e1aaf3fd24ee0e:/IkiWiki/Plugin/search.pm diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm index b6fca66ff..2d8c3d4e1 100644 --- a/IkiWiki/Plugin/search.pm +++ b/IkiWiki/Plugin/search.pm @@ -79,10 +79,11 @@ sub estcfg () { #{{{ my $estdir="$config{wikistatedir}/hyperestraier"; my $cgi=IkiWiki::basename($config{cgiurl}); $cgi=~s/\..*$//; - open(TEMPLATE, ">$estdir/$cgi.tmpl") || + open(TEMPLATE, ">:utf8", "$estdir/$cgi.tmpl") || error("write $estdir/$cgi.tmpl: $!"); print TEMPLATE IkiWiki::misctemplate("search", - "\n\n\n\n\n\n"); + "\n\n\n\n\n\n", + baseurl => IkiWiki::dirname($config{cgiurl})."/"); close TEMPLATE; open(TEMPLATE, ">$estdir/$cgi.conf") || error("write $estdir/$cgi.conf: $!"); @@ -91,7 +92,7 @@ sub estcfg () { #{{{ $template->param( index => $estdir, tmplfile => "$estdir/$cgi.tmpl", - destdir => IkiWiki::abs_path($config{destdir}), + destdir => abs_path($config{destdir}), url => $config{url}, ); print TEMPLATE $template->output;