From b3bcd49a6c9ccc0d527aeeaebe5b0c7550373215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Tue, 28 Apr 2026 08:48:53 +0200 Subject: [PATCH] refactor: Replace OC::$server->getL10N by Util::getL10N MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the code more consistent with stable33 and later. Signed-off-by: Daniel Calviño Sánchez --- apps/dav/lib/CardDAV/UserAddressBooks.php | 3 ++- build/psalm-baseline.xml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/dav/lib/CardDAV/UserAddressBooks.php b/apps/dav/lib/CardDAV/UserAddressBooks.php index e29e52e77df..4c640af554e 100644 --- a/apps/dav/lib/CardDAV/UserAddressBooks.php +++ b/apps/dav/lib/CardDAV/UserAddressBooks.php @@ -21,6 +21,7 @@ use OCP\IRequest; use OCP\IUser; use OCP\IUserSession; use OCP\Server; +use OCP\Util; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use Sabre\CardDAV\Backend; @@ -53,7 +54,7 @@ class UserAddressBooks extends \Sabre\CardDAV\AddressBookHome { */ public function getChildren() { if ($this->l10n === null) { - $this->l10n = \OC::$server->getL10N('dav'); + $this->l10n = Util::getL10N('dav'); } if ($this->config === null) { $this->config = Server::get(IConfig::class); diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index b44e18ea114..d7871fe16af 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -594,7 +594,6 @@ - principalUri]]>