From a4bcc9132382fe0543b6ebb62a376ecede32eb0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Jul 2022 17:33:42 +0200 Subject: [PATCH] Switch to old static server instance MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Model/ShareWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Model/ShareWrapper.php b/lib/Model/ShareWrapper.php index 38bd099f1..4229373ce 100644 --- a/lib/Model/ShareWrapper.php +++ b/lib/Model/ShareWrapper.php @@ -678,7 +678,7 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator) { $display = $circle->getDisplayName(); if ($circle->getSource() === Member::TYPE_CIRCLE) { - $l10n = \OCP\Server::get(IFactory::class)->get('circles'); + $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()] . ')';