baseurl(): return local path, not absolute URL, if the argument is undef
authorSimon McVittie <smcv@debian.org>
Mon, 22 Nov 2010 23:25:45 +0000 (23:25 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 22 Nov 2010 23:47:04 +0000 (23:47 +0000)
IkiWiki.pm

index 41e9e3f82d3cc89f44b953c8b3a47def74758fb4..a4afef8e0381f337d9cf8c26fe961210a2f5aaf0 100644 (file)
@@ -1057,7 +1057,7 @@ sub cgiurl (@) {
 sub baseurl (;$) {
        my $page=shift;
 
 sub baseurl (;$) {
        my $page=shift;
 
-       return "$config{url}/" if ! defined $page;
+       return $local_url if ! defined $page;
        
        $page=htmlpage($page);
        $page=~s/[^\/]+$//;
        
        $page=htmlpage($page);
        $page=~s/[^\/]+$//;