Skip to content

Commit

Permalink
Fix for site/hostname mixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed May 10, 2011
1 parent c7e2d71 commit 4743325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/z_trans.erl
Expand Up @@ -56,7 +56,7 @@ translations(From, Context) when is_binary(From) ->
% This can happen when translations are reloaded while requests are 'in flight'
% with old translation table references in the context.
% We retry with the current table.
case ets:lookup(z_trans_server:table(z_context:hostname(Context)), From) of
case ets:lookup(z_trans_server:table(z_context:site(Context)), From) of
[] -> From;
[{_, Trans}] -> {trans, Trans}
end
Expand Down

0 comments on commit 4743325

Please sign in to comment.