Skip to content
Snippets Groups Projects
Unverified Commit c706009c authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #14488 from nextcloud/fix/dav/has-photo

Fix dav has-photo plugin extend
parents 3b9ced22 d6e9a2ea
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,11 @@ use Sabre\CardDAV\Card; ...@@ -28,10 +28,11 @@ use Sabre\CardDAV\Card;
use Sabre\DAV\INode; use Sabre\DAV\INode;
use Sabre\DAV\PropFind; use Sabre\DAV\PropFind;
use Sabre\DAV\Server; use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
use Sabre\VObject\Component\VCard; use Sabre\VObject\Component\VCard;
use Sabre\VObject\Reader; use Sabre\VObject\Reader;
class HasPhotoPlugin extends \Sabre\CardDAV\Plugin { class HasPhotoPlugin extends ServerPlugin {
/** @var Server */ /** @var Server */
protected $server; protected $server;
...@@ -44,7 +45,6 @@ class HasPhotoPlugin extends \Sabre\CardDAV\Plugin { ...@@ -44,7 +45,6 @@ class HasPhotoPlugin extends \Sabre\CardDAV\Plugin {
*/ */
function initialize(Server $server) { function initialize(Server $server) {
$server->on('propFind', [$this, 'propFind']); $server->on('propFind', [$this, 'propFind']);
parent::initialize($server);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment