Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Khramtsov <ekhramtsov@process-one.net>2019-06-14 12:33:26 +0300
committerEvgeny Khramtsov <ekhramtsov@process-one.net>2019-06-14 12:33:26 +0300
commita02cff0e780bb735531594c4ece81e8628f79782 (patch)
tree6fe7d8219d14f58183be1741fcea262c216db447 /src/node_dag.erl
parentd48c067681d4ab25f7b97559757d8e7865ac0251 (diff)
Use new configuration validator
Diffstat (limited to 'src/node_dag.erl')
-rw-r--r--src/node_dag.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_dag.erl b/src/node_dag.erl
index d1d8ccd8e..03633ef1e 100644
--- a/src/node_dag.erl
+++ b/src/node_dag.erl
@@ -80,7 +80,7 @@ publish_item(Nidx, Publisher, Model, MaxItems, ItemId, Payload, PubOpts) ->
collection ->
Txt = <<"Publishing items to collection node is not allowed">>,
{error, mod_pubsub:extended_error(
- xmpp:err_not_allowed(Txt, ejabberd_config:get_mylang()),
+ xmpp:err_not_allowed(Txt, ejabberd_option:language()),
mod_pubsub:err_unsupported('publish'))};
_ ->
node_hometree:publish_item(Nidx, Publisher, Model,