projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be4e6d
)
baseurl(): return local path, not absolute URL, if the argument is undef
author
Simon McVittie
<smcv@debian.org>
Mon, 22 Nov 2010 23:25:45 +0000
(23:25 +0000)
committer
Simon McVittie
<smcv@debian.org>
Mon, 22 Nov 2010 23:47:04 +0000
(23:47 +0000)
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 41e9e3f82d3cc89f44b953c8b3a47def74758fb4..a4afef8e0381f337d9cf8c26fe961210a2f5aaf0 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-1057,7
+1057,7
@@
sub cgiurl (@) {
sub baseurl (;$) {
my $page=shift;
- return
"$config{url}/"
if ! defined $page;
+ return
$local_url
if ! defined $page;
$page=htmlpage($page);
$page=~s/[^\/]+$//;