post.php: fix DI method call

This commit is contained in:
Zankaria 2024-08-15 16:39:12 +02:00
parent e16dc142b7
commit e640217a8f

View File

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