Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Avoid using non-existing \OCP\Server::get
and fix translation

Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan committed Jul 7, 2022
commit f927cd8c0001c3c63565947575b09ee1d93b3401
4 changes: 2 additions & 2 deletions lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()] . ')';
}
Expand Down