Merge pull request #794 from Zankaria/fix-di

Forgot to convert a method call in #784
This commit is contained in:
Lorenzo Yario
2024-08-16 21:43:24 -07:00
committed by GitHub

View File

@@ -674,10 +674,10 @@ if (isset($_POST['delete'])) {
}
}
} catch (RuntimeException $e) {
$context->getLog()->log(Log::ERROR, "Captcha IO exception: {$e->getMessage()}");
$context->get(Log::class)->log(Log::ERROR, "Captcha IO exception: {$e->getMessage()}");
error($config['error']['remote_io_error']);
} catch (JsonException $e) {
$context->getLog()->log(Log::ERROR, "Bad JSON reply to captcha: {$e->getMessage()}");
$context->get(Log::class)->log(Log::ERROR, "Bad JSON reply to captcha: {$e->getMessage()}");
error($config['error']['remote_io_error']);
}