diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-23 00:19:10 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-23 00:19:10 +0000 |
commit | 1f019ac2aaa2ba3ec06764f9e62679918cae435d (patch) | |
tree | a50c572e84fb9ee23769acc29b9a758f890d6995 /IkiWiki/Plugin/img.pm | |
parent | 296e5cb2fd3690e998b3824d54d317933c595873 (diff) | |
download | ikiwiki-1f019ac2aaa2ba3ec06764f9e62679918cae435d.tar ikiwiki-1f019ac2aaa2ba3ec06764f9e62679918cae435d.tar.gz |
Use local paths for most references to pages
Diffstat (limited to 'IkiWiki/Plugin/img.pm')
-rw-r--r-- | IkiWiki/Plugin/img.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index bd527c8c8..b554a3dfc 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -152,8 +152,8 @@ sub preprocess (@) { $imgurl=urlto($imglink, $params{destpage}); } else { - $fileurl="$config{url}/$file"; - $imgurl="$config{url}/$imglink"; + $fileurl=urlto($file, undef); + $imgurl=urlto($imglink, undef); } if (! exists $params{class}) { |