aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorKathryn Andersen <perlkat@katspace.org>2014-06-29 17:21:18 +0100
committerSimon McVittie <smcv@debian.org>2014-07-11 22:09:48 +0100
commit6ad80b8068c2c76babcc32919f9c997456af50e7 (patch)
treebabc2fad406b836c4f28dbbc6774b54e31fe0a77 /IkiWiki/Plugin
parente91415ef074db2cfbd7423bfd7ff819684eb0b98 (diff)
downloadikiwiki-6ad80b8068c2c76babcc32919f9c997456af50e7.tar
ikiwiki-6ad80b8068c2c76babcc32919f9c997456af50e7.tar.gz
album: allow thumbnails to not be 96x96
[taken from a diff on the discussion page -smcv]
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/album.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/album.pm b/IkiWiki/Plugin/album.pm
index bade7c43b..f42078b8b 100644
--- a/IkiWiki/Plugin/album.pm
+++ b/IkiWiki/Plugin/album.pm
@@ -499,6 +499,7 @@ sub pagetemplate (@) {
my $viewer = $params{page};
my $album = $pagestate{$viewer}{album}{album};
my $image = $pagestate{$viewer}{album}{image};
+ my $thumbnailsize = $pagestate{$album}{album}{thumbnailsize};
return unless defined $album;
return unless defined $image;
@@ -510,7 +511,7 @@ sub pagetemplate (@) {
if ($template->query(name => 'thumbnail')) {
$template->param(thumbnail =>
- thumbnail($viewer, $params{destpage}));
+ thumbnail($viewer, $params{destpage}, $thumbnailsize));
}
if (IkiWiki::isinlinableimage($image)
&& ($template->query(name => 'imagewidth') ||