diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-06 19:07:52 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-06 19:07:52 -0400 |
commit | 7a8b492bcce45123cef45ebe6f97cd70b38b9db7 (patch) | |
tree | 7598e259fb141db33e80e04cb7feb68c9c5f9e0b /IkiWiki.pm | |
parent | e45e23a7f1018e1639b1ce1fdec1b2319050641d (diff) | |
download | ikiwiki-7a8b492bcce45123cef45ebe6f97cd70b38b9db7.tar ikiwiki-7a8b492bcce45123cef45ebe6f97cd70b38b9db7.tar.gz |
add_depends should default to content dependencies if unknown type specified
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 7348ea2f7..7b1d24c6a 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1810,9 +1810,7 @@ sub add_depends ($$;@) { } } } - else { - $deptype=$DEPEND_CONTENT; - } + $deptype=$DEPEND_CONTENT unless $deptype; if ($simple) { $depends_simple{$page}{lc $pagespec} |= $deptype; |