From 3f5a20c90a2317dfa2d1aecb4e8443a1bd100c23 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 5 Jan 2016 22:06:34 +0100 Subject: [PATCH] mod_http_upload: Rename variable for clarity --- src/mod_http_upload.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 661163703..0abce2124 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -775,14 +775,14 @@ iq_disco_info(Lang, Name) -> binary(), slot(), boolean()) -> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}. -store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) -> +store_file(Path, Data, FileMode, DirMode, GetPrefix, Slot, Thumbnail) -> case do_store_file(Path, Data, FileMode, DirMode) of ok when Thumbnail -> case identify(Path) of {ok, MediaInfo} -> case convert(Path, MediaInfo) of {ok, OutPath} -> - [UserDir, RandDir | _] = LocalPath, + [UserDir, RandDir | _] = Slot, FileName = filename:basename(OutPath), URL = str:join([GetPrefix, UserDir, RandDir, FileName], <<$/>>),