parent
7082ebaf7b
commit
2d957205ef
|
@ -109,11 +109,11 @@ class DbBackendForm extends Form
|
|||
try {
|
||||
$dbUserBackend = new DbUserBackend(ResourceFactory::createResource($form->getResourceConfig()));
|
||||
if ($dbUserBackend->count() < 1) {
|
||||
$form->addError($this->translate('No users found under the specified database backend'));
|
||||
$form->addError($form->translate('No users found under the specified database backend'));
|
||||
return false;
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$form->addError(sprintf($this->translate('Using the specified backend failed: %s'), $e->getMessage()));
|
||||
$form->addError(sprintf($form->translate('Using the specified backend failed: %s'), $e->getMessage()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ class LdapBackendForm extends Form
|
|||
$form->addError($e->getMessage());
|
||||
return false;
|
||||
} catch (Exception $e) {
|
||||
$form->addError(sprintf($this->translate('Unable to validate authentication: %s'), $e->getMessage()));
|
||||
$form->addError(sprintf($form->translate('Unable to validate authentication: %s'), $e->getMessage()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ class DbResourceForm extends Form
|
|||
$resource->getConnection()->getConnection();
|
||||
} catch (Exception $e) {
|
||||
$form->addError(
|
||||
$this->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
$form->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ class LdapResourceForm extends Form
|
|||
}
|
||||
} catch (Exception $e) {
|
||||
$form->addError(
|
||||
$this->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
$form->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -77,7 +77,7 @@ class LivestatusResourceForm extends Form
|
|||
$resource->connect()->disconnect();
|
||||
} catch (Exception $_) {
|
||||
$form->addError(
|
||||
$this->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
$form->translate('Connectivity validation failed, connection to the given resource not possible.')
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue