From 17d5dfdeb159bb940a1e3d45479ad2c5f99d8225 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 15 Sep 2016 17:01:35 +0200 Subject: add in same request --- apps/dav/lib/CalDAV/Publishing/PublishPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/dav/lib/CalDAV/Publishing') diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php index aaa2868a86d..241e5260c70 100644 --- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php +++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php @@ -97,7 +97,7 @@ class PublishPlugin extends ServerPlugin { $propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node) { if ($node->getPublishStatus()) { // We return the publish-url only if the calendar is published. - $token = $node->getPublishToken(); + $token = $node->getPublishStatus(); $publishUrl = $this->urlGenerator->getAbsoluteURL($this->server->getBaseUri().'public-calendars/').$token; return new Publisher($publishUrl, true); -- cgit v1.2.3