img: use presence dependency when linking to a page

master
Joey Hess 2009-10-09 13:37:06 -04:00
parent 1b6b1ee2d8
commit c5e237c013
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ sub preprocess (@) {
my $b = bestlink($params{page}, $params{link}); my $b = bestlink($params{page}, $params{link});
if (length $b) { if (length $b) {
add_depends($params{page}, $b); add_depends($params{page}, $b, deptype("presence"));
$imgtag=htmllink($params{page}, $params{destpage}, $imgtag=htmllink($params{page}, $params{destpage},
$params{link}, linktext => $imgtag, $params{link}, linktext => $imgtag,
noimageinline => 1); noimageinline => 1);