From b2e9e0fa0d6c50892e94b4ad325ef59fe41dfad9 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 1 Feb 2024 16:13:27 +0100 Subject: chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some apps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/files_trashbin/lib/Trashbin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_trashbin') diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php index 442abc13670..ced40313d62 100644 --- a/apps/files_trashbin/lib/Trashbin.php +++ b/apps/files_trashbin/lib/Trashbin.php @@ -1069,7 +1069,7 @@ class Trashbin { private static function getUniqueFilename($location, $filename, View $view) { $ext = pathinfo($filename, PATHINFO_EXTENSION); $name = pathinfo($filename, PATHINFO_FILENAME); - $l = \OC::$server->getL10N('files_trashbin'); + $l = \OCP\Util::getL10N('files_trashbin'); $location = '/' . trim($location, '/'); -- cgit v1.2.3