]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/img.pm
response
[git.ikiwiki.info.git] / IkiWiki / Plugin / img.pm
index 2375ead8968b6a9baf64ff8ac825dbde6a75b82d..bd527c8c82c79eb5a8ef1a2ae6aa694f0279121d 100644 (file)
@@ -156,10 +156,7 @@ sub preprocess (@) {
                $imgurl="$config{url}/$imglink";
        }
 
                $imgurl="$config{url}/$imglink";
        }
 
-       if (exists $params{class}) {
-               $params{class}.=" img";
-       }
-       else {
+       if (! exists $params{class}) {
                $params{class}="img";
        }
 
                $params{class}="img";
        }