From 99d89ce59d9d16d5c5e71c32243bf2443b589bbe 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 --- mod_http_upload/src/mod_http_upload.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 84c4fe4..bf46421 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -757,14 +757,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], <<$/>>),