mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-17 19:29:28 +01:00
post.php: fix DI method call
This commit is contained in:
parent
e16dc142b7
commit
e640217a8f
4
post.php
4
post.php
@ -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']);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user