26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-28 17:38:54 +01:00

backport trunk commit r2530

SVN Revision: 2538
This commit is contained in:
Pablo Polvorin 2009-08-25 20:33:01 +00:00
parent 4d5bfe2ee8
commit f7c5a4a15b

View File

@ -3701,8 +3701,9 @@ itemsEls(Items) ->
#xmlel{ns = ?NS_PUBSUB, name = 'item', attrs = itemAttr(ItemId), children = Payload}
end, Items).
add_headers(#xmlel{} = El, Headers) ->
exmpp_xml:append_children(El, Headers).
add_headers(#xmlel{} = El, HeaderEls) ->
HeaderEl = #xmlel{ns = ?NS_SHIM, name = 'headers', children = HeaderEls},
exmpp_xml:prepend_child(El, HeaderEl).
collection_shim(Node, Nodes) ->
[#xmlel{ns = ?NS_PUBSUB, name ='header',