Commit 26f64d3e authored by Gabriel Guardincerri's avatar Gabriel Guardincerri Committed by gguardin

Fixed problems with VCard xml

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9949 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2c650829
...@@ -334,7 +334,7 @@ public class ClearspaceVCardProvider implements VCardProvider { ...@@ -334,7 +334,7 @@ public class ClearspaceVCardProvider implements VCardProvider {
loadReadOnly(); loadReadOnly();
} }
return readOnly == null ? false : readOnly;*/ return readOnly == null ? false : readOnly;*/
return false; return true;
} }
private void loadReadOnly() { private void loadReadOnly() {
...@@ -356,8 +356,7 @@ public class ClearspaceVCardProvider implements VCardProvider { ...@@ -356,8 +356,7 @@ public class ClearspaceVCardProvider implements VCardProvider {
private Element translate(Element profile, User user, Element avatar) { private Element translate(Element profile, User user, Element avatar) {
Document vCardDoc = DocumentHelper.createDocument(); Document vCardDoc = DocumentHelper.createDocument();
Element vCard = vCardDoc.addElement("VCard"); Element vCard = vCardDoc.addElement("vCard", "vcard-temp");
vCard.addAttribute("xmlns", "vcard-temp");
addUserInformation(user, vCard); addUserInformation(user, vCard);
addProfileInformation(profile, vCard); addProfileInformation(profile, vCard);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment