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.
master
Simon McVittie 2010-11-22 23:20:32 +00:00
parent 200c599dca
commit 6be4e6d1a5
1 changed files with 2 additions and 1 deletions

View File

@ -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};