From 58a4b594db4467cc48044fa457a291cda700dffa Mon Sep 17 00:00:00 2001 From: Badlop Date: Wed, 14 Apr 2010 16:45:37 +0200 Subject: [PATCH] Update calls of old xml_stream and xml, to exmpp. --- src/ejabberd.app | 1 - src/mod_pubsub/node_hometree_odbc.erl | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ejabberd.app b/src/ejabberd.app index 93b9049bb..3d814c3b5 100644 --- a/src/ejabberd.app +++ b/src/ejabberd.app @@ -120,7 +120,6 @@ tls, translate, xml, - xml_stream, 'XmppAddr' ]}, {registered, [ejabberd, diff --git a/src/mod_pubsub/node_hometree_odbc.erl b/src/mod_pubsub/node_hometree_odbc.erl index 7dd94970e..7d7aa7caf 100644 --- a/src/mod_pubsub/node_hometree_odbc.erl +++ b/src/mod_pubsub/node_hometree_odbc.erl @@ -1360,9 +1360,9 @@ raw_to_item(NodeId, {ItemId, SJID, Creation, Modification, XML}) -> [T1,T2,T3] = string:tokens(Str, ":"), {l2i(T1), l2i(T2), l2i(T3)} end, - Payload = case xml_stream:parse_element(XML) of + Payload = case exmpp_xmlstream:parse_element(XML) of {error, _Reason} -> []; - El -> [El] + [El] -> [El] end, #pubsub_item{itemid = {ItemId, NodeId}, creation={ToTime(Creation), JID},