summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-24 11:36:20 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:17 +0200
commitede15f0988c02cf65f9d1a763d9bb2ea0edde2e9 (patch)
tree7e2295dd8598ba894b4eaaf7d7d47ff8b4946d7e /apps/workflowengine/lib
parentfd465d4e492bf19812f2c62f06766b3d70f8a270 (diff)
downloadnextcloud-server-ede15f0988c02cf65f9d1a763d9bb2ea0edde2e9.tar.gz
nextcloud-server-ede15f0988c02cf65f9d1a763d9bb2ea0edde2e9.zip
Fix L10N::t
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/workflowengine/lib')
-rw-r--r--apps/workflowengine/lib/Manager.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php
index e93498b5075..48d29cf207e 100644
--- a/apps/workflowengine/lib/Manager.php
+++ b/apps/workflowengine/lib/Manager.php
@@ -165,7 +165,7 @@ class Manager implements IManager {
return $row;
}
- throw new \UnexpectedValueException($this->l->t('Operation #%s does not exist', $id));
+ throw new \UnexpectedValueException($this->l->t('Operation #%s does not exist', [$id]));
}
/**
@@ -250,11 +250,11 @@ class Manager implements IManager {
/** @var IOperation $instance */
$instance = $this->container->query($class);
} catch (QueryException $e) {
- throw new \UnexpectedValueException($this->l->t('Operation %s does not exist', $class));
+ throw new \UnexpectedValueException($this->l->t('Operation %s does not exist', [$class]));
}
if (!($instance instanceof IOperation)) {
- throw new \UnexpectedValueException($this->l->t('Operation %s is invalid', $class));
+ throw new \UnexpectedValueException($this->l->t('Operation %s is invalid', [$class]));
}
$instance->validateOperation($name, $checks, $operation);
@@ -264,11 +264,11 @@ class Manager implements IManager {
/** @var ICheck $instance */
$instance = $this->container->query($check['class']);
} catch (QueryException $e) {
- throw new \UnexpectedValueException($this->l->t('Check %s does not exist', $class));
+ throw new \UnexpectedValueException($this->l->t('Check %s does not exist', [$class]));
}
if (!($instance instanceof ICheck)) {
- throw new \UnexpectedValueException($this->l->t('Check %s is invalid', $class));
+ throw new \UnexpectedValueException($this->l->t('Check %s is invalid', [$class]));
}
$instance->validateCheck($check['operator'], $check['value']);