Skip to content

Commit e70b89e

Browse files
committed
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 <[email protected]>
1 parent fbff470 commit e70b89e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/user_ldap/lib/Controller/WizardController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function action(
104104
throw new OCSException();
105105

106106
default:
107-
throw new OCSException($this->l->t('Action does not exist'));
107+
throw new OCSException('Action ' . $wizardAction . 'does not exist');
108108
break;
109109
}
110110
} catch (OCSException $e) {
@@ -149,7 +149,7 @@ function (string $uid): void {
149149
$mapping = Server::get(GroupMapping::class);
150150
$result = $mapping->clear();
151151
} else {
152-
throw new OCSException($this->l->t('Unsupported subject ' . $subject));
152+
throw new OCSException('Unsupported subject ' . $subject);
153153
}
154154

155155
if (!$result) {

0 commit comments

Comments
 (0)