mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-01 02:27:24 +01:00
Merge pull request #794 from Zankaria/fix-di
Forgot to convert a method call in #784
This commit is contained in:
commit
60135bbb89
4
post.php
4
post.php
@ -674,10 +674,10 @@ if (isset($_POST['delete'])) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (RuntimeException $e) {
|
} 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']);
|
error($config['error']['remote_io_error']);
|
||||||
} catch (JsonException $e) {
|
} 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']);
|
error($config['error']['remote_io_error']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user