From 54c90b2d41488657c583e657b16e363c9eb999fa Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 9 Nov 2006 20:58:24 +0000 Subject: * Fix img plugin's handling of adding dependencies for images that do not yet exist. --- IkiWiki/Plugin/img.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin/img.pm') 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); -- cgit v1.2.3