mirror of
https://github.com/nextcloud/server.git
synced 2024-09-10 06:27:35 +02:00
Merge pull request #21853 from owncloud/tags-fixpropertyma
Fix oc:tags tag list serializer
This commit is contained in:
commit
6cb95f4e42
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user