[Pkg-owncloud-commits] [php-sabre-vobject] 86/341: !xml Use constants as much as possible.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:35:36 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 781aa02ab41931f903a293fb0cc80e2c5cc0bbe6
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date:   Mon Nov 24 15:23:59 2014 +0100

    !xml Use constants as much as possible.
---
 lib/Parser/XML.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Parser/XML.php b/lib/Parser/XML.php
index 60e917d..f992f4e 100644
--- a/lib/Parser/XML.php
+++ b/lib/Parser/XML.php
@@ -199,9 +199,9 @@ class XML extends Parser {
         if(is_string($input)) {
 
             $reader = new SabreXML\Reader();
-            $reader->elementMap['{urn:ietf:params:xml:ns:icalendar-2.0}period']
+            $reader->elementMap['{' . self::XCAL_NAMESPACE . '}period']
                 = 'Sabre\VObject\Parser\XML\Element\KeyValue';
-            $reader->elementMap['{urn:ietf:params:xml:ns:icalendar-2.0}recur']
+            $reader->elementMap['{' . self::XCAL_NAMESPACE . '}recur']
                 = 'Sabre\VObject\Parser\XML\Element\KeyValue';
             $reader->xml($input);
             $input  = $reader->parse();

-- 
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