projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use local paths for most references to pages
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
img.pm
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index bd527c8c82c79eb5a8ef1a2ae6aa694f0279121d..b554a3dfc94a6c6cdd380f8e3461e6b2ec648e6a 100644
(file)
--- 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}) {