Merge pull request #21853 from owncloud/tags-fixpropertyma

Fix oc:tags tag list serializer
This commit is contained in:
Thomas Müller 2016-01-26 11:37:37 +01:00
commit 6cb95f4e42
2 changed files with 2 additions and 4 deletions

View File

@ -114,9 +114,7 @@ class TagList implements Element {
function xmlSerialize(Writer $writer) {
foreach ($this->tags as $tag) {
$writer->startElement(self::NS_OWNCLOUD . ':tag');
$writer->writeElement($tag);
$writer->endElement();
$writer->writeElement('{' . self::NS_OWNCLOUD . '}tag', $tag);
}
}
}

View File

@ -109,7 +109,7 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin
public function initialize(\Sabre\DAV\Server $server) {
$server->xml->namespacesMap[self::NS_OWNCLOUD] = 'oc';
$server->propertyMap[self::TAGS_PROPERTYNAME] = 'OCA\\DAV\\Connector\\Sabre\\TagList';
$server->xml->elementMap[self::TAGS_PROPERTYNAME] = 'OCA\\DAV\\Connector\\Sabre\\TagList';
$this->server = $server;
$this->server->on('propFind', array($this, 'handleGetProperties'));