Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert spam
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
img.pm
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index 2375ead8968b6a9baf64ff8ac825dbde6a75b82d..103f6b2b3510067f10a5eddf86f8e657ba96fe29 100644
(file)
--- a/
IkiWiki/Plugin/img.pm
+++ b/
IkiWiki/Plugin/img.pm
@@
-152,14
+152,11
@@
sub preprocess (@) {
$imgurl=urlto($imglink, $params{destpage});
}
else {
$imgurl=urlto($imglink, $params{destpage});
}
else {
- $fileurl=
"$config{url}/$file"
;
- $imgurl=
"$config{url}/$imglink"
;
+ $fileurl=
urlto($file)
;
+ $imgurl=
urlto($imglink)
;
}
}
- if (exists $params{class}) {
- $params{class}.=" img";
- }
- else {
+ if (! exists $params{class}) {
$params{class}="img";
}
$params{class}="img";
}