add missing namespaces/fix wrong class-names

This commit is contained in:
nupplaPhil 2020-01-19 16:29:54 +01:00
parent bce67496a7
commit 191e298504
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 7 additions and 7 deletions

View file

@ -372,7 +372,7 @@ function advancedcontentfilter_put_rules_id(ServerRequestInterface $request, Res
}
if (!DBA::update('advancedcontentfilter_rules', $fields, ['id' => $args['id']])) {
throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
}
return json_encode(['message' => DI::l10n()->t('Rule successfully updated')]);
@ -393,7 +393,7 @@ function advancedcontentfilter_delete_rules_id(ServerRequestInterface $request,
}
if (!DBA::delete('advancedcontentfilter_rules', ['id' => $args['id']])) {
throw new HTTPException\ServiceUnavaiableException(DBA::errorMessage());
throw new HTTPException\ServiceUnavailableException(DBA::errorMessage());
}
return json_encode(['message' => DI::l10n()->t('Rule successfully deleted')]);