summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/img.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index bde5a3e1a..20893f56c 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -34,8 +34,8 @@ sub preprocess (@) { #{{{
return '';
}
+ add_depends($params{page}, $image);
my $file = bestlink($params{page}, $image) || return "[[img $image not found]]";
- add_depends($params{page}, $file);
my $dir = IkiWiki::dirname($file);
my $base = IkiWiki::basename($file);