25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Update calls of old xml_stream and xml, to exmpp.

This commit is contained in:
Badlop 2010-04-14 16:45:37 +02:00
parent 7471d49b5a
commit 58a4b594db
2 changed files with 2 additions and 3 deletions

View File

@ -120,7 +120,6 @@
tls, tls,
translate, translate,
xml, xml,
xml_stream,
'XmppAddr' 'XmppAddr'
]}, ]},
{registered, [ejabberd, {registered, [ejabberd,

View File

@ -1360,9 +1360,9 @@ raw_to_item(NodeId, {ItemId, SJID, Creation, Modification, XML}) ->
[T1,T2,T3] = string:tokens(Str, ":"), [T1,T2,T3] = string:tokens(Str, ":"),
{l2i(T1), l2i(T2), l2i(T3)} {l2i(T1), l2i(T2), l2i(T3)}
end, end,
Payload = case xml_stream:parse_element(XML) of Payload = case exmpp_xmlstream:parse_element(XML) of
{error, _Reason} -> []; {error, _Reason} -> [];
El -> [El] [El] -> [El]
end, end,
#pubsub_item{itemid = {ItemId, NodeId}, #pubsub_item{itemid = {ItemId, NodeId},
creation={ToTime(Creation), JID}, creation={ToTime(Creation), JID},