Skip to content
Browse files

fix typo

  • Loading branch information...
1 parent 28eaabb commit cfca38432369efba6ec600eaf2fb4b2b47e217de @benoitc committed Nov 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/erica_web.erl
View
4 src/erica_web.erl
@@ -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),
@@ -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),

0 comments on commit cfca384

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