summaryrefslogtreecommitdiff
path: root/src/mod_pubsub.erl
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2017-10-31 11:59:53 +0100
committerChristophe Romain <christophe.romain@process-one.net>2017-10-31 11:59:53 +0100
commite697a3e2621de8d0ebc543d0784c0de9a2993975 (patch)
tree40ea74c3abd985c2db93e925f06bf2277d1125fe /src/mod_pubsub.erl
parentDo not bind unused tail from 675cc3e (diff)
Add missing type conversion from 675cc3e
Diffstat (limited to 'src/mod_pubsub.erl')
-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 877c884c..e065bdaa 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().