aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_pubsub.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 877c884c5..e065bdaae 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -3402,7 +3402,7 @@ subscription_plugin(Host) ->
submodule(Host, Type, Name) ->
case gen_mod:db_type(serverhost(Host), ?MODULE) of
mnesia -> ejabberd:module_name([<<"pubsub">>, Type, Name]);
- Db -> ejabberd:module_name([<<"pubsub">>, Type, Name, Db])
+ Db -> ejabberd:module_name([<<"pubsub">>, Type, Name, misc:atom_to_binary(Db)])
end.
-spec config(binary(), any()) -> any().