From 307b61ad625956e478c16f406061c9751baa928a Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 11 Oct 2024 14:42:25 +0200 Subject: i18n fixes --- src/application/actions/viewtopic/_common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/application/actions/viewtopic') diff --git a/src/application/actions/viewtopic/_common.php b/src/application/actions/viewtopic/_common.php index 7f249bb..b257237 100644 --- a/src/application/actions/viewtopic/_common.php +++ b/src/application/actions/viewtopic/_common.php @@ -3,11 +3,11 @@ use mystic\forum\orm\Topic; $formId = "addpost"; -$topicId = $_GET["topic"] ?? throw new Exception("Missing topic id"); +$topicId = $_GET["topic"] ?? throw new Exception(__("Missing topic id")); $topic = new Topic(); $topic->id = $topicId; if (!$db->fetch($topic)) { http_response_code(404); - msg_error("No topic exists with this id"); + msg_error(__("No topic exists with this id")); exit; } -- cgit v1.2.3