diff --git a/lib/Model/ShareWrapper.php b/lib/Model/ShareWrapper.php index ef3795c33..4229373ce 100644 --- a/lib/Model/ShareWrapper.php +++ b/lib/Model/ShareWrapper.php @@ -678,8 +678,8 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator) { $display = $circle->getDisplayName(); if ($circle->getSource() === Member::TYPE_CIRCLE) { - $l10n = \OCP\Server::get(IFactory::class)->get('circles'); - $display = $l10n->t('%1 (Circle owned by %2)', [$display, $circle->getOwner()->getDisplayName()]); + $l10n = \OC::$server->get(IFactory::class)->get('circles'); + $display = $l10n->t('%s (Circle owned by %s)', [$display, $circle->getOwner()->getDisplayName()]); } else { $display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')'; }