aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-11-23 22:21:31 +0000
committerSimon McVittie <smcv@debian.org>2010-11-23 22:21:31 +0000
commitd01334b8e9c229895ecb6d0b0a7acda86515df71 (patch)
treec520985aa37bbd8d675f3156254848a82e31e9bb
parent4625e0c4d9bfa03921ef088cf4197d2ab183889d (diff)
downloadikiwiki-d01334b8e9c229895ecb6d0b0a7acda86515df71.tar
ikiwiki-d01334b8e9c229895ecb6d0b0a7acda86515df71.tar.gz
If cgiurl is set, but url isn't, use an absolute $local_cgiurl
-rw-r--r--IkiWiki.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index ee0b1f1ea..140f7f740 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -566,6 +566,9 @@ sub checkconfig () {
$local_url =~ s{//$}{/};
}
+ else {
+ $local_cgiurl = $config{cgiurl};
+ }
$config{wikistatedir}="$config{srcdir}/.ikiwiki"
unless exists $config{wikistatedir} && defined $config{wikistatedir};