Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitc committed Nov 11, 2012
1 parent 28eaabb commit cfca384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/erica_web.erl
Expand Up @@ -482,7 +482,7 @@ render_template(Req, Name, Ctx0) ->
{Name, {_FileInfo, Bin}} ->
{Name, Bin};
_ ->
Path = filname:join([priv_dir(), "web_templates", Name]),
Path = filename:join([priv_dir(), "web_templates", Name]),
case filelib:is_file(Path) of
true ->
{ok, Bin} = file:read_file(Path),
Expand Down Expand Up @@ -517,7 +517,7 @@ serve_file(#httpd{mochi_req=MochiReq, static_files=Files}, Name) ->
{Name, {FileInfo, Bin}} ->
serve_file(MochiReq, Name, FileInfo, Bin);
_ ->
Path = filname:join([priv_dir(), "web_static", Name]),
Path = filename:join([priv_dir(), "web_static", Name]),
case filelib:is_file(Path) of
true ->
{ok, Bin} = file:read_file(Path),
Expand Down

0 comments on commit cfca384

Please sign in to comment.