mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix db_type validation
This commit is contained in:
parent
aa0f110afe
commit
465e1f5ee1
@ -535,7 +535,7 @@ get_defaults(Host, Module, Opts) ->
|
||||
lists:filtermap(
|
||||
fun({Opt, T1}) when Opt == db_type; Opt == ram_db_type ->
|
||||
T2 = proplists:get_value(Opt, Opts, T1),
|
||||
DBMod = db_mod(Opt, T2, Module),
|
||||
DBMod = list_to_atom(atom_to_list(Module) ++ "_" ++ atom_to_list(T2)),
|
||||
case code:ensure_loaded(DBMod) of
|
||||
{module, _} ->
|
||||
case erlang:function_exported(DBMod, mod_options, 1) of
|
||||
|
Loading…
Reference in New Issue
Block a user