]> sipb.mit.edu Git - ikiwiki.git/commitdiff
img: remove special case handling of link=yes
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 7 Jan 2010 20:41:16 +0000 (15:41 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 7 Jan 2010 20:41:16 +0000 (15:41 -0500)
Only exists as an undocumented backwards compatability hack.

IkiWiki/Plugin/img.pm

index 845a4bf365be84167bda4a352368b183a40813db..083061bf62b5cf5bcbc91b911dbf7452b4eed69e 100644 (file)
@@ -162,7 +162,7 @@ sub preprocess (@) {
        my $alignclass=exists $params{align} ? "align-$params{align}" : "";
 
        my $link;
-       if (! defined $params{link} || lc($params{link}) eq 'yes') {
+       if (! defined $params{link}) {
                $link=$fileurl;
        }
        elsif ($params{link} =~ /^\w+:\/\//) {