diff options
author | Louis Chemineau <louis@chmn.me> | 2022-09-28 23:20:53 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-10-10 12:23:52 +0200 |
commit | 142fe8363862a750bfa6cf728ba7f81fa2e3b683 (patch) | |
tree | 65909778a8ad63ce2be356d1f8b4340f9fd4fe3b /lib/Sabre/Album/PropFindPlugin.php | |
parent | a2890b03e795184863e4252fd535fa6037b86235 (diff) |
Make public pages work
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/Sabre/Album/PropFindPlugin.php')
-rw-r--r-- | lib/Sabre/Album/PropFindPlugin.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Sabre/Album/PropFindPlugin.php b/lib/Sabre/Album/PropFindPlugin.php index b716ca34..9f3572ce 100644 --- a/lib/Sabre/Album/PropFindPlugin.php +++ b/lib/Sabre/Album/PropFindPlugin.php @@ -28,13 +28,13 @@ use OCA\DAV\Connector\Sabre\FilesPlugin; use OCA\Photos\Album\AlbumMapper; use OCP\IConfig; use OCP\IPreview; +use OCP\Files\NotFoundException; use Sabre\DAV\INode; use Sabre\DAV\PropFind; use Sabre\DAV\PropPatch; use Sabre\DAV\Server; use Sabre\DAV\ServerPlugin; use Sabre\DAV\Tree; -use OCP\Files\NotFoundException; class PropFindPlugin extends ServerPlugin { public const ORIGINAL_NAME_PROPERTYNAME = '{http://nextcloud.org/ns}original-name'; @@ -69,6 +69,19 @@ class PropFindPlugin extends ServerPlugin { } /** + * Returns a plugin name. + * + * Using this name other plugins will be able to access other plugins + * using DAV\Server::getPlugin + * + * @return string + */ + public function getPluginName() { + return 'photosDavPlugin'; + } + + + /** * @return void */ public function initialize(Server $server) { |