summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/img.pm3
-rw-r--r--debian/changelog1
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index 223b5a11f..e2f541506 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -44,6 +44,7 @@ sub preprocess (@) {
}
add_link($params{page}, $image);
+ add_depends($params{page}, $image);
# optimisation: detect scan mode, and avoid generating the image
if (! defined wantarray) {
@@ -69,8 +70,6 @@ sub preprocess (@) {
my ($dwidth, $dheight);
if ($params{size} ne 'full') {
- add_depends($params{page}, $image);
-
my ($w, $h) = ($params{size} =~ /^(\d*)x(\d*)$/);
error sprintf(gettext('wrong size format "%s" (should be WxH)'), $params{size})
unless (defined $w && defined $h &&
diff --git a/debian/changelog b/debian/changelog
index d2ff88a2a..44c810b00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
* parentlinks: Add has_parentlinks template parameter to allow styling
the toplevel index differently etc.
* img: Correct bug in image size calculation code.
+ * img: Fix dependency code for full size images.
-- Joey Hess <joeyh@debian.org> Sun, 27 Sep 2009 17:40:03 -0400