diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-22 23:20:32 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-22 23:47:04 +0000 |
commit | 6be4e6d1a501fa10d7894ff46b4a812cddb26d49 (patch) | |
tree | 1e4a3f8263d1d0f2459df51dac1fc06ab0db95a9 | |
parent | 200c599dcaeb4dde77564b84022b67bf71cd6bfa (diff) |
cgiurl(): return a locally-valid path by default
To get an absolute version you can use cgiurl(cgiurl => $config{cgiurl}).
The only place in IkiWiki that seems to actually need an absolute URL
is the openid plugin, and that already uses the named parameter.
-rw-r--r-- | IkiWiki.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 989f3bee7..41e9e3f82 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1039,7 +1039,8 @@ sub linkpage ($) { sub cgiurl (@) { my %params=@_; - my $cgiurl=$config{cgiurl}; + my $cgiurl=$local_cgiurl; + if (exists $params{cgiurl}) { $cgiurl=$params{cgiurl}; delete $params{cgiurl}; |