diff options
author | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 12:25:34 +0200 |
---|---|---|
committer | Susinthiran Sithamparanathan <chesusin@gmail.com> | 2012-10-17 16:17:36 +0200 |
commit | b2b84f3a6f3c98005f80c6c7c558a33b4ea36193 (patch) | |
tree | 1ae0c571e25ab7322e9a942dfdcc593f67e98ad6 /3rdparty/Sabre/CalDAV/CalendarQueryParser.php | |
parent | 45dec77d92c9a7804489bee34b218bbe8c85f7c5 (diff) | |
download | nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.tar.gz nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.zip |
Update Sabre to version 1.7.1
Diffstat (limited to '3rdparty/Sabre/CalDAV/CalendarQueryParser.php')
-rw-r--r--[-rwxr-xr-x] | 3rdparty/Sabre/CalDAV/CalendarQueryParser.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/3rdparty/Sabre/CalDAV/CalendarQueryParser.php b/3rdparty/Sabre/CalDAV/CalendarQueryParser.php index bd0d343382f..b95095f96fc 100755..100644 --- a/3rdparty/Sabre/CalDAV/CalendarQueryParser.php +++ b/3rdparty/Sabre/CalDAV/CalendarQueryParser.php @@ -1,5 +1,7 @@ <?php +use Sabre\VObject; + /** * Parses the calendar-query report request body. * @@ -68,7 +70,7 @@ class Sabre_CalDAV_CalendarQueryParser { $this->xpath = new DOMXPath($dom); $this->xpath->registerNameSpace('cal',Sabre_CalDAV_Plugin::NS_CALDAV); - $this->xpath->registerNameSpace('dav','urn:DAV'); + $this->xpath->registerNameSpace('dav','DAV:'); } @@ -241,12 +243,12 @@ class Sabre_CalDAV_CalendarQueryParser { $timeRangeNode = $timeRangeNodes->item(0); if ($start = $timeRangeNode->getAttribute('start')) { - $start = Sabre_VObject_DateTimeParser::parseDateTime($start); + $start = VObject\DateTimeParser::parseDateTime($start); } else { $start = null; } if ($end = $timeRangeNode->getAttribute('end')) { - $end = Sabre_VObject_DateTimeParser::parseDateTime($end); + $end = VObject\DateTimeParser::parseDateTime($end); } else { $end = null; } @@ -274,13 +276,13 @@ class Sabre_CalDAV_CalendarQueryParser { if(!$start) { throw new Sabre_DAV_Exception_BadRequest('The "start" attribute is required for the CALDAV:expand element'); } - $start = Sabre_VObject_DateTimeParser::parseDateTime($start); + $start = VObject\DateTimeParser::parseDateTime($start); $end = $parentNode->getAttribute('end'); if(!$end) { throw new Sabre_DAV_Exception_BadRequest('The "end" attribute is required for the CALDAV:expand element'); } - $end = Sabre_VObject_DateTimeParser::parseDateTime($end); + $end = VObject\DateTimeParser::parseDateTime($end); if ($end <= $start) { throw new Sabre_DAV_Exception_BadRequest('The end-date must be larger than the start-date in the expand element.'); |