From e640217a8fc9d7faed57aa5827de6a97c8178eeb Mon Sep 17 00:00:00 2001 From: Zankaria Date: Thu, 15 Aug 2024 16:39:12 +0200 Subject: [PATCH] post.php: fix DI method call --- post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post.php b/post.php index 644ff111..a80c9d8e 100644 --- a/post.php +++ b/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']); }