No need to call database twice

This commit is contained in:
Thomas Citharel 2016-07-07 10:19:00 +02:00 committed by Lukas Reschke
parent 7e5a82b968
commit bd0aae8636
No known key found for this signature in database
GPG key ID: B9F6980CF6E759B1

View file

@ -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);
}
});