]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/img.pm
img: If a class is specified, don't also put the img in the img class.
[ikiwiki.git] / IkiWiki / Plugin / img.pm
index 2375ead8968b6a9baf64ff8ac825dbde6a75b82d..bd527c8c82c79eb5a8ef1a2ae6aa694f0279121d 100644 (file)
@@ -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";
        }