aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Publishing
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-07-07 10:19:00 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-26 11:55:35 +0200
commitbd0aae8636b846cb43a844838ae42d4203dc693a (patch)
tree5c898f5bc856b01191d732deb2b728b37ddf405e /apps/dav/lib/CalDAV/Publishing
parent7e5a82b968b2c40576e6bbc051022a6699ff9092 (diff)
downloadnextcloud-server-bd0aae8636b846cb43a844838ae42d4203dc693a.tar.gz
nextcloud-server-bd0aae8636b846cb43a844838ae42d4203dc693a.zip
No need to call database twice
Diffstat (limited to 'apps/dav/lib/CalDAV/Publishing')
-rw-r--r--apps/dav/lib/CalDAV/Publishing/PublishPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
index c12071e3670..704f0263238 100644
--- a/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
+++ b/apps/dav/lib/CalDAV/Publishing/PublishPlugin.php
@@ -102,7 +102,7 @@ class PublishPlugin extends ServerPlugin
$propFind->handle('{'.self::NS_CALENDARSERVER.'}publish-url', function () use ($node, $publishUrl) {
if ($node->getPublishStatus()) {
- return new Publisher($publishUrl, $node->getPublishStatus());
+ return new Publisher($publishUrl, true);
}
});