]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/img.pm
* aggregate: Include copyright statements from rss feed as meta copyright
[git.ikiwiki.info.git] / IkiWiki / Plugin / img.pm
index 9385f64172024d45a7c71fb618ac5d0358dae45b..88a3d7b4d6f299a4f46efceb21a6cac75f73fbf6 100644 (file)
@@ -106,7 +106,11 @@ sub preprocess (@) { #{{{
        if (! defined $params{link} || lc($params{link}) eq 'yes') {
                return  '<a href="'.$fileurl.'">'.$imgtag.'</a>';
        }
        if (! defined $params{link} || lc($params{link}) eq 'yes') {
                return  '<a href="'.$fileurl.'">'.$imgtag.'</a>';
        }
+       elsif ($params{link} =~ /^\w+:\/\//) {
+               return  '<a href="'.$params{link}.'">'.$imgtag.'</a>';
+       }
        elsif (length bestlink($params{page}, $params{link})) {
        elsif (length bestlink($params{page}, $params{link})) {
+               add_depends($params{page}, $params{link});
                return htmllink($params{page}, $params{destpage},
                        $params{link}, linktext => $imgtag,
                        noimageinline => 1);
                return htmllink($params{page}, $params{destpage},
                        $params{link}, linktext => $imgtag,
                        noimageinline => 1);