From: Simon McVittie Date: Mon, 22 Nov 2010 23:20:32 +0000 (+0000) Subject: cgiurl(): return a locally-valid path by default X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6be4e6d1a501fa10d7894ff46b4a812cddb26d49;p=ikiwiki.git 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. --- 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};