]> git.mxchange.org Git - friendica-addons.git/blobdiff - advancedcontentfilter/advancedcontentfilter.php
Merge pull request #950 from nupplaphil/bug/8182_another_notification_bug
[friendica-addons.git] / advancedcontentfilter / advancedcontentfilter.php
index 415cf48c1e161b5b4d691a75cc5596ae135d3a4f..c92858135c4865794fa657c4ac3b10445acbcdef 100644 (file)
@@ -37,7 +37,6 @@ use Friendica\App;
 use Friendica\BaseModule;
 use Friendica\Content\Text\Markdown;
 use Friendica\Core\Hook;
-use Friendica\Core\L10n;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
@@ -373,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')]);
@@ -394,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')]);