summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-14 15:20:49 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-14 15:20:49 -0500
commit8be2b60aaca495b84c299cf69ee8958603bd7204 (patch)
treed3fc0fb7c235fe7f193bd10a3e56cfbb0cf8e45a /IkiWiki
parent9192a8837505d47fa4cd8b4fb661fb5a102e01df (diff)
* The search plugin needs to override <base> to point to the directory
containing ikiwiki.cgi, but this should not change the urls to the style sheets etc. Add a new forcebareurl parameter to misctemplate to allow it to do that.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/search.pm b/IkiWiki/Plugin/search.pm
index da818e5cf..9bf223cf0 100644
--- a/IkiWiki/Plugin/search.pm
+++ b/IkiWiki/Plugin/search.pm
@@ -96,7 +96,7 @@ sub estcfg () { #{{{
open(TEMPLATE, ">:utf8", $newfile) || error("open $newfile: $!", $cleanup);
print TEMPLATE IkiWiki::misctemplate("search",
"<!--ESTFORM-->\n\n<!--ESTRESULT-->\n\n<!--ESTINFO-->\n\n",
- baseurl => IkiWiki::dirname($config{cgiurl})."/") ||
+ forcebaseurl => IkiWiki::dirname($config{cgiurl})."/") ||
error("write $newfile: $!", $cleanup);
close TEMPLATE || error("save $newfile: $!", $cleanup);
rename($newfile, "$estdir/$cgi.tmpl") ||