summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Romain <christophe.romain@process-one.net>2008-06-19 09:08:39 +0000
committerChristophe Romain <christophe.romain@process-one.net>2008-06-19 09:08:39 +0000
commitcf8be23af18752df9d41a2bb5d197e9abbbc13b3 (patch)
tree96a3a591607a280596505119baddc4617e32f939 /src
parent* src/ejabberd.app: The ejabberd version number is defined in the (diff)
allow get_default on PEP nodes (EJAB-656)
SVN Revision: 1364
Diffstat (limited to 'src')
-rw-r--r--src/mod_pubsub/mod_pubsub.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_pubsub/mod_pubsub.erl b/src/mod_pubsub/mod_pubsub.erl
index cb8ce997..349c7ad4 100644
--- a/src/mod_pubsub/mod_pubsub.erl
+++ b/src/mod_pubsub/mod_pubsub.erl
@@ -2352,7 +2352,10 @@ get_configure(Host, Node, From, Lang) ->
transaction(Host, Node, Action, sync_dirty).
get_default(Host, _Node, _From, Lang) ->
- Type = hd(plugins(Host)), % first configured plugin is default
+ Type = case Host of
+ {_, _, _} -> ?PEPNODE;
+ _ -> hd(plugins(Host))
+ end,
Options = node_options(Type),
{result, [{xmlelement, "pubsub", [{"xmlns", ?NS_PUBSUB_OWNER}],
[{xmlelement, "default", [],