mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Use alternative split/2 function that works with Erlang/OTP as old as 19.3
This commit is contained in:
parent
ce89ff07e7
commit
92d7be4338
@ -398,7 +398,7 @@ create_image(Limiter, Key) ->
|
||||
{error, image_error()}.
|
||||
do_create_image(Key) ->
|
||||
FileName = get_prog_name(),
|
||||
case length(string:split(FileName, "/")) == 1 of
|
||||
case length(binary:split(FileName, <<"/">>)) == 1 of
|
||||
true ->
|
||||
do_create_image(Key, misc:binary_to_atom(FileName));
|
||||
false ->
|
||||
|
Loading…
Reference in New Issue
Block a user