mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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>
This commit is contained in:
parent
86560b33bc
commit
7eefd725db
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue