diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-01-06 00:06:34 +0300 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-01-06 00:06:34 +0300 |
commit | 3f5a20c90a2317dfa2d1aecb4e8443a1bd100c23 (patch) | |
tree | 40d23bf3e63f057528c7b9e2c3e1c565263fe379 /src | |
parent | efda70e73aa80399377613b05d93ac208ca687fd (diff) |
mod_http_upload: Rename variable for clarity
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_http_upload.erl | 4 |
1 files 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], <<$/>>), |