25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix deprecated call injected by 265c7b62

This commit is contained in:
Christophe Romain 2018-04-18 14:16:56 +02:00
parent 265c7b62c7
commit a567abcfdf

View File

@ -162,7 +162,6 @@ base_url(Server, Path) ->
<<"http", _/binary>> -> BPath;
_ ->
Base = ejabberd_config:get_option({ext_api_url, Server},
fun(X) -> iolist_to_binary(X) end,
<<"http://localhost/api">>),
case binary:last(Base) of
47 -> <<Base/binary, BPath/binary>>;