]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/img.pm
note
[ikiwiki.git] / IkiWiki / Plugin / img.pm
index 5c580c03cec01a5c4529fefd9f207702e0306d58..d295b833b21b57ccfef5c5d985ae91281efb466b 100644 (file)
@@ -119,9 +119,9 @@ sub preprocess (@) {
        }
 
        my $imgtag='<img src="'.$imgurl.
-               '" alt="'.(exists $params{alt} ? $params{alt} : '').
                '" width="'.$im->Get("width").
                '" height="'.$im->Get("height").'"'.
+               (exists $params{alt} ? '" alt="'.$params{alt}.'"' : '').
                (exists $params{title} ? ' title="'.$params{title}.'"' : '').
                (exists $params{class} ? ' class="'.$params{class}.'"' : '').
                (exists $params{id} ? ' id="'.$params{id}.'"' : '').