Skip to content

Commit

Permalink
Fix up base/info service -- add translation lookup to administrator t…
Browse files Browse the repository at this point in the history
…itle.
  • Loading branch information
Arjan Scherpenisse committed Feb 16, 2011
1 parent 753e35e commit 21dfa20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/mod_base/services/service_base_info.erl
Expand Up @@ -31,13 +31,13 @@
process_get(_ReqData, Context) ->
Result = case z_auth:is_auth(Context) of
true ->
z_convert:to_list(m_rsc:p(Context#context.user_id, title, Context));
z_convert:to_list(z_trans:lookup_fallback(m_rsc:p(Context#context.user_id, title, Context), Context));
false ->
"Anonymous"
end,
{struct, [{"user", {struct, [{"user_name", z_convert:to_atom(Result)},
{"user_id", Context#context.user_id}]}},
{"site", {struct, [{"zotonic_version", cfg(zotonic, version, Context)},
{"site", {struct, [{"zotonic_version", ?ZOTONIC_VERSION},
{"language", cfg(i18n, language, Context)}]}}
]
}.
Expand Down

0 comments on commit 21dfa20

Please sign in to comment.