[Pkg-owncloud-commits] [php-sabredav] 17/66: Added 'card' namespace to namespaceMap.

David Prévot taffit at moszumanska.debian.org
Wed May 27 13:56:44 UTC 2015


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

taffit pushed a commit to tag 3.0.0-alpha1
in repository php-sabredav.

commit eacdc549b2b3a5a9bf8f94aa86229485c6e2d848
Author: Evert Pot <me at evertpot.com>
Date:   Tue Apr 14 17:42:27 2015 -0400

    Added 'card' namespace to namespaceMap.
---
 CHANGELOG.md           | 1 +
 lib/CardDAV/Plugin.php | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index cdc2b3e..9ef116d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ ChangeLog
   ics-export plugin is enabled.
 * Some nodes that by default showed the current time as their last
   modification time, now no longer has a last modification time.
+* CardDAV namespace was missing from default namespaceMap.
 
 
 2.2.0-alpha4 (2015-04-13)
diff --git a/lib/CardDAV/Plugin.php b/lib/CardDAV/Plugin.php
index 0aeff36..0a39328 100644
--- a/lib/CardDAV/Plugin.php
+++ b/lib/CardDAV/Plugin.php
@@ -74,6 +74,8 @@ class Plugin extends DAV\ServerPlugin {
         $server->on('beforeCreateFile',    [$this, 'beforeCreateFile']);
         $server->on('afterMethod:GET',     [$this, 'httpAfterGet']);
 
+        $server->xml->namespaceMap[self::NS_CARDDAV] = 'card';
+
         $server->xml->elementMap['{' . self::NS_CARDDAV . '}addressbook-query'] = 'Sabre\\CardDAV\\Xml\\Request\\AddressBookQueryReport';
         $server->xml->elementMap['{' . self::NS_CARDDAV . '}addressbook-multiget'] = 'Sabre\\CardDAV\\Xml\\Request\\AddressBookMultiGetReport';
 

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



More information about the Pkg-owncloud-commits mailing list