Browse Source

fixing issue with module dependencies (processing the list recursively for all dependencies)

Ilia Cheishvili 14 years ago
parent
commit
978c9f55f8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/erlydtl/erlydtl_compiler.erl

+ 3 - 3
src/erlydtl/erlydtl_compiler.erl

@@ -471,9 +471,9 @@ merge_info(Info1, Info2) ->
 
 with_dependencies([], Args) ->
     Args;
-with_dependencies([H, T], Args) ->
-     with_dependencies(T, with_dependency(H, Args)).
-        
+with_dependencies([Dependency | Rest], Args) ->
+     with_dependencies(Rest, with_dependency(Dependency, Args)).
+
 with_dependency(FilePath, {{Ast, Info}, TreeWalker}) ->
     {{Ast, Info#ast_info{dependencies = [FilePath | Info#ast_info.dependencies]}}, TreeWalker}.