From 7eefd725db5a0dc6c5e4e78ff9843373395c1f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 27 Nov 2025 14:18:39 +0100 Subject: [PATCH] fix(user_ldap): Do not use variables directly in translation strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I simply removed translations for exceptions which are never supposed to happen apart from API misuse or code bug. Signed-off-by: Côme Chilliet --- apps/user_ldap/lib/Controller/WizardController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/Controller/WizardController.php b/apps/user_ldap/lib/Controller/WizardController.php index 63791b0588b..25e5a68b504 100644 --- a/apps/user_ldap/lib/Controller/WizardController.php +++ b/apps/user_ldap/lib/Controller/WizardController.php @@ -104,7 +104,7 @@ class WizardController extends OCSController { throw new OCSException(); default: - throw new OCSException($this->l->t('Action does not exist')); + throw new OCSException('Action ' . $wizardAction . 'does not exist'); break; } } catch (OCSException $e) { @@ -149,7 +149,7 @@ class WizardController extends OCSController { $mapping = Server::get(GroupMapping::class); $result = $mapping->clear(); } else { - throw new OCSException($this->l->t('Unsupported subject ' . $subject)); + throw new OCSException('Unsupported subject ' . $subject); } if (!$result) {