mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Fix deprecated call injected by 265c7b62
This commit is contained in:
parent
265c7b62c7
commit
a567abcfdf
@ -162,7 +162,6 @@ base_url(Server, Path) ->
|
|||||||
<<"http", _/binary>> -> BPath;
|
<<"http", _/binary>> -> BPath;
|
||||||
_ ->
|
_ ->
|
||||||
Base = ejabberd_config:get_option({ext_api_url, Server},
|
Base = ejabberd_config:get_option({ext_api_url, Server},
|
||||||
fun(X) -> iolist_to_binary(X) end,
|
|
||||||
<<"http://localhost/api">>),
|
<<"http://localhost/api">>),
|
||||||
case binary:last(Base) of
|
case binary:last(Base) of
|
||||||
47 -> <<Base/binary, BPath/binary>>;
|
47 -> <<Base/binary, BPath/binary>>;
|
||||||
|
Loading…
Reference in New Issue
Block a user