[Pkg-owncloud-commits] [php-sabre-vobject] 207/341: Serialize the vCard XML property to xCard.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit c711c637d095832daebb1be883af0e3fd55f7f92
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Jan 26 15:32:20 2015 +0100

    Serialize the vCard XML property to xCard.
---
 lib/Component/VCard.php | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/lib/Component/VCard.php b/lib/Component/VCard.php
index 9284c14..3875c71 100644
--- a/lib/Component/VCard.php
+++ b/lib/Component/VCard.php
@@ -443,11 +443,20 @@ class VCard extends VObject\Document {
 
         foreach ($this->children as $property) {
 
-            if ($property->name === 'VERSION') {
-                continue;
-            }
+            switch ($property->name) {
+
+                case 'VERSION':
+                    continue;
+
+                case 'XML':
+                    $value = $property->getParts();
+                    $writer->writeRaw('  ' . $value[0] . "\n ");
+                    break;
+
+                default:
+                    $property->xmlSerialize($writer);
 
-            $property->xmlSerialize($writer);
+            }
 
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list