summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-12-03 15:55:10 +0100
committerVincent Petry <pvince81@owncloud.com>2015-12-03 15:55:10 +0100
commitacdd106a24fb51faf4749a3c1bdaeaac0ed32c2a (patch)
tree534325701eceffad3aab54f31e16811e1e84ed67 /apps/dav
parent1fe7957fd0210c6a3f6ad5c810f1ba5814ff68d6 (diff)
downloadnextcloud-server-acdd106a24fb51faf4749a3c1bdaeaac0ed32c2a.tar.gz
nextcloud-server-acdd106a24fb51faf4749a3c1bdaeaac0ed32c2a.zip
Fix namespace XML output of files and tags dav
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/connector/sabre/filesplugin.php2
-rw-r--r--apps/dav/lib/connector/sabre/tagsplugin.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/connector/sabre/filesplugin.php b/apps/dav/lib/connector/sabre/filesplugin.php
index e85a67a8759..1c78e9dc845 100644
--- a/apps/dav/lib/connector/sabre/filesplugin.php
+++ b/apps/dav/lib/connector/sabre/filesplugin.php
@@ -97,7 +97,7 @@ class FilesPlugin extends \Sabre\DAV\ServerPlugin {
*/
public function initialize(\Sabre\DAV\Server $server) {
- $server->xmlNamespaces[self::NS_OWNCLOUD] = 'oc';
+ $server->xml->namespaceMap[self::NS_OWNCLOUD] = 'oc';
$server->protectedProperties[] = self::FILEID_PROPERTYNAME;
$server->protectedProperties[] = self::INTERNAL_FILEID_PROPERTYNAME;
$server->protectedProperties[] = self::PERMISSIONS_PROPERTYNAME;
diff --git a/apps/dav/lib/connector/sabre/tagsplugin.php b/apps/dav/lib/connector/sabre/tagsplugin.php
index 2f5937da25a..778d43f1b3a 100644
--- a/apps/dav/lib/connector/sabre/tagsplugin.php
+++ b/apps/dav/lib/connector/sabre/tagsplugin.php
@@ -107,7 +107,7 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin
*/
public function initialize(\Sabre\DAV\Server $server) {
- $server->xmlNamespaces[self::NS_OWNCLOUD] = 'oc';
+ $server->xml->namespacesMap[self::NS_OWNCLOUD] = 'oc';
$server->propertyMap[self::TAGS_PROPERTYNAME] = 'OCA\\DAV\\Connector\\Sabre\\TagList';
$this->server = $server;