aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-13 12:57:16 -0400
committerJoey Hess <joey@kitenet.net>2010-10-13 12:57:16 -0400
commit8555d10f6369d78c44cf4677010b7e1260d9f5c0 (patch)
tree7393ab940f20d23395776033dfec36dc96fef99f /IkiWiki/Plugin
parent7ba0f7d297e7d3e833756016b635ffa0cc78200e (diff)
downloadikiwiki-8555d10f6369d78c44cf4677010b7e1260d9f5c0.tar
ikiwiki-8555d10f6369d78c44cf4677010b7e1260d9f5c0.tar.gz
img: If a class is specified, don't also put the img in the img class.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/img.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index 2375ead89..bd527c8c8 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -156,10 +156,7 @@ sub preprocess (@) {
$imgurl="$config{url}/$imglink";
}
- if (exists $params{class}) {
- $params{class}.=" img";
- }
- else {
+ if (! exists $params{class}) {
$params{class}="img";
}