fix(user_ldap): Do not use variables directly in translation strings

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 <come.chilliet@nextcloud.com>
pull/56728/head
Côme Chilliet 1 month ago committed by Côme Chilliet
parent 86560b33bc
commit 7eefd725db
  1. 4
      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) {

Loading…
Cancel
Save