Skip to content
Browse files

Patch for erlydtl_runtime - keys were not found in dictionary

  • Loading branch information...
1 parent 13b19c0 commit c4573253841ea21d0b339cdcb9f982a7248d4d30 Piotr Kaleta committed Feb 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/erlydtl-0.5.3/src/erlydtl/erlydtl_runtime.erl
View
4 lib/erlydtl-0.5.3/src/erlydtl/erlydtl_runtime.erl
@@ -3,9 +3,9 @@
-compile(export_all).
find_value(Key, L) when is_list(L) ->
- proplists:get_value(Key, L);
+ proplists:get_value(atom_to_list(Key), L);
find_value(Key, {GBSize, GBData}) when is_integer(GBSize) ->
- case gb_trees:lookup(Key, {GBSize, GBData}) of
+ case gb_trees:lookup(atom_to_list(Key), {GBSize, GBData}) of
{value, Val} ->
Val;
_ ->

0 comments on commit c457325

Please sign in to comment.
Something went wrong with that request. Please try again.