Add more front-end controllers, language file cleanup

This commit is contained in:
Dane Everitt
2017-09-03 16:32:52 -05:00
parent 4532811fcd
commit 54554465f2
59 changed files with 1100 additions and 336 deletions

View File

@@ -131,12 +131,12 @@ class SubuserCreationService
]);
} else {
if ($server->owner_id === $user->id) {
throw new UserIsServerOwnerException(trans('admin/exceptions.subusers.user_is_owner'));
throw new UserIsServerOwnerException(trans('exceptions.subusers.user_is_owner'));
}
$subuserCount = $this->subuserRepository->findCountWhere([['user_id', '=', $user->id], ['server_id', '=', $server->id]]);
if ($subuserCount !== 0) {
throw new ServerSubuserExistsException(trans('admin/exceptions.subusers.subuser_exists'));
throw new ServerSubuserExistsException(trans('exceptions.subusers.subuser_exists'));
}
}
@@ -160,7 +160,7 @@ class SubuserCreationService
$this->writer->warning($exception);
$response = $exception->getResponse();
throw new DisplayException(trans('admin/exceptions.daemon_connection_failed', [
throw new DisplayException(trans('exceptions.daemon_connection_failed', [
'code' => is_null($response) ? 'E_CONN_REFUSED' : $response->getStatusCode(),
]));
}