summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2008-12-18 13:45:46 +0000
committerChristophe Romain <christophe.romain@process-one.net>2008-12-18 13:45:46 +0000
commitc0fb556a011fe57d931f8616e5fd128aa435661b (patch)
tree93e120c78e5d452527bdfc58937132f32681b1d5 /src
parent* src/mod_pubsub/mod_pubsub.erl: Fix update pubsub tables from (diff)
Check option of the nodetree instead of checking configuration
SVN Revision: 1737
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index 61002dae..748355bd 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -1254,8 +1254,8 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
ok ->
node_call(Type, create_node, [Host, Node, Owner]);
{error, ?ERR_CONFLICT} ->
- case ets:lookup(gen_mod:get_module_proc(ServerHost, pubsub_state), nodetree) of
- [{nodetree, nodetree_virtual}] -> node_call(Type, create_node, [Host, Node, Owner]);
+ case proplists:get_value(virtual_tree, tree_call(Host, options, [])) of
+ true -> node_call(Type, create_node, [Host, Node, Owner]);
_ -> {error, ?ERR_CONFLICT}
end;
Error ->