1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-28 09:20:58 +01:00

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
commit 60135bbb89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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']);
}