Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
253b1a4
)
img: remove special case handling of link=yes
author
Joey Hess
<joey@gnu.kitenet.net>
Thu, 7 Jan 2010 20:41:16 +0000
(15:41 -0500)
committer
Joey 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
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/img.pm
b/IkiWiki/Plugin/img.pm
index 845a4bf365be84167bda4a352368b183a40813db..083061bf62b5cf5bcbc91b911dbf7452b4eed69e 100644
(file)
--- a/
IkiWiki/Plugin/img.pm
+++ b/
IkiWiki/Plugin/img.pm
@@
-162,7
+162,7
@@
sub preprocess (@) {
my $alignclass=exists $params{align} ? "align-$params{align}" : "";
my $link;
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+:\/\//) {
$link=$fileurl;
}
elsif ($params{link} =~ /^\w+:\/\//) {