Skip to content

Commit a575561

Browse files
committed
fix import
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent a2c0c69 commit a575561

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Model/ShareWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
use OCP\IURLGenerator;
2929
use OCP\IUserManager;
3030
use OCP\L10N\IFactory;
31+
use OCP\Server;
3132
use OCP\Share\Exceptions\IllegalIDChangeException;
3233
use OCP\Share\IAttributes;
3334
use OCP\Share\IShare;
@@ -451,7 +452,7 @@ private function setShareDisplay(IShare $share, IURLGenerator $urlGenerator): vo
451452

452453
$display = $circle->getDisplayName();
453454
if ($circle->getSource() === Member::TYPE_CIRCLE) {
454-
$l10n = \OCP\Server::get(IFactory::class)->get('circles');
455+
$l10n = Server::get(IFactory::class)->get('circles');
455456
$display = $l10n->t('%s (Team owned by %s)', [$display, $circle->getOwner()->getDisplayName()]);
456457
} else {
457458
$display .= ' (' . Circle::$DEF_SOURCE[$circle->getSource()] . ')';

0 commit comments

Comments
 (0)